mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-28 22:28:18 +00:00
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:
co-authored by
Koen Kanters
parent
c0ed4aa9cc
commit
e1f9a3910d
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"*.yaml": "home-assistant"
|
||||
}
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user