Update Invalid rename message format expected to be proper json (#3397)

* Update Invalid rename message format expected to be proper json

The example in the 'Invalid rename message format expected' error message, was not proper JSON and missing the last string end

* Updates

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
This commit is contained in:
Philipp Kolmann
2020-04-20 19:38:55 +02:00
committed by GitHub
co-authored by Koen Kanters
parent c0ed4aa9cc
commit e1f9a3910d
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
{
"files.associations": {
"*.yaml": "home-assistant"
}
}
+2 -1
View File
@@ -192,7 +192,8 @@ class BridgeLegacy extends Extension {
}
rename(topic, message) {
const invalid = `Invalid rename message format expected {old: 'friendly_name', new: 'new_name} got ${message}`;
const invalid =
`Invalid rename message format expected {"old": "friendly_name", "new": "new_name"} got ${message}`;
let json = null;
try {