Skip to content
Snippets Groups Projects
Commit 0492f0ab authored by MartinHjelmare's avatar MartinHjelmare
Browse files

Fix error in update method for V_STATUS

* Remove check against V_STATUS to avoid error when using version 1.4
    of mysensors. V_LIGHT has the same integer value so V_STATUS is not
    needed.
parent 1ba60dc8
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,6 @@ class MySensorsSwitch(SwitchDevice):
_LOGGER.info(
"%s: value_type %s, value = %s", self._name, value_type, value)
if value_type == self.gateway.const.SetReq.V_ARMED or \
value_type == self.gateway.const.SetReq.V_STATUS or \
value_type == self.gateway.const.SetReq.V_LIGHT or \
value_type == self.gateway.const.SetReq.V_LOCK_STATUS:
self._values[value_type] = (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment