mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 22:25:13 +02:00
Fixed V_PERCENTAGE is str
This commit is contained in:
@@ -51,7 +51,7 @@ class MySensorsCover(mysensors.MySensorsDeviceEntity, CoverDevice):
|
||||
def is_closed(self):
|
||||
"""Return True if cover is closed."""
|
||||
set_req = self.gateway.const.SetReq
|
||||
return self._values.get(set_req.V_PERCENTAGE) == 0
|
||||
return self._values.get(set_req.V_PERCENTAGE) == '0'
|
||||
|
||||
@property
|
||||
def current_cover_position(self):
|
||||
|
Reference in New Issue
Block a user