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"):
|
||||
key="status"
|
||||
value="no_motion"
|
||||
# do not retain event-based sensors (like switches).
|
||||
if (model == "switch"):
|
||||
# do not retain event-based sensors (like switches and cubes).
|
||||
if (model in ["switch", "cube"]):
|
||||
retain = False
|
||||
|
||||
# fix for rgb format
|
||||
|
||||
Reference in New Issue
Block a user