mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Explicitly cast the SOMA API response to an integer (#60071)
This resolves the `TypeError: unsupported operand type(s) for -: 'int' and 'str'` error. Fixes #60070. Signed-off-by: Avi Miller <me@dje.li>
This commit is contained in:
parent
23f37d0127
commit
e056f9aa0f
@ -87,5 +87,5 @@ class SomaCover(SomaEntity, CoverEntity):
|
|||||||
)
|
)
|
||||||
self.is_available = False
|
self.is_available = False
|
||||||
return
|
return
|
||||||
self.current_position = 100 - response["position"]
|
self.current_position = 100 - int(response["position"])
|
||||||
self.is_available = True
|
self.is_available = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user