Add cube to event-based devices.
This commit is contained in:
+2
-2
@@ -72,8 +72,8 @@ class Mqtt:
|
|||||||
if (model == "motion" and key == "no_motion"):
|
if (model == "motion" and key == "no_motion"):
|
||||||
key="status"
|
key="status"
|
||||||
value="no_motion"
|
value="no_motion"
|
||||||
# do not retain event-based sensors (like switches).
|
# do not retain event-based sensors (like switches and cubes).
|
||||||
if (model == "switch"):
|
if (model in ["switch", "cube"]):
|
||||||
retain = False
|
retain = False
|
||||||
|
|
||||||
# fix for rgb format
|
# fix for rgb format
|
||||||
|
|||||||
Reference in New Issue
Block a user