mirror of
https://github.com/home-assistant/core.git
synced 2025-08-09 15:45:08 +02:00
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.
This commit is contained in:
@@ -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] = (
|
||||
|
Reference in New Issue
Block a user