mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 14:45:09 +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):
|
def is_closed(self):
|
||||||
"""Return True if cover is closed."""
|
"""Return True if cover is closed."""
|
||||||
set_req = self.gateway.const.SetReq
|
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
|
@property
|
||||||
def current_cover_position(self):
|
def current_cover_position(self):
|
||||||
|
Reference in New Issue
Block a user