mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02: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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user