From 0492f0abd04d2a0269934b0b04cd017ea180240f Mon Sep 17 00:00:00 2001
From: MartinHjelmare <marhje52@kth.se>
Date: Fri, 12 Feb 2016 22:05:31 +0100
Subject: [PATCH] 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.
---
 homeassistant/components/switch/mysensors.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/homeassistant/components/switch/mysensors.py b/homeassistant/components/switch/mysensors.py
index a50266b2597..86c96b9f459 100644
--- a/homeassistant/components/switch/mysensors.py
+++ b/homeassistant/components/switch/mysensors.py
@@ -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] = (
-- 
GitLab