Add cube to event-based devices.

This commit is contained in:
Your Name
2017-01-16 10:40:40 +03:00
parent 18d6fe3db1
commit dd2bf6ae4f
+2 -2
View File
@@ -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