mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-28 05:24:29 +00:00
Make retain a optional option and default it to false.
This commit is contained in:
+1
-1
@@ -263,7 +263,7 @@ class Controller {
|
||||
}
|
||||
|
||||
const options = {
|
||||
retain: entity.settings.retain,
|
||||
retain: entity.settings.hasOwnProperty('retain') ? entity.settings.retain : false,
|
||||
qos: entity.settings.hasOwnProperty('qos') ? entity.settings.qos : 0,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user