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>pull/60828/head
parent
23f37d0127
commit
e056f9aa0f
homeassistant/components/soma
|
@ -87,5 +87,5 @@ class SomaCover(SomaEntity, CoverEntity):
|
|||
)
|
||||
self.is_available = False
|
||||
return
|
||||
self.current_position = 100 - response["position"]
|
||||
self.current_position = 100 - int(response["position"])
|
||||
self.is_available = True
|
||||
|
|
Loading…
Reference in New Issue