mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Handle type error in hunterdouglas_powerview (#42137)
This commit is contained in:
parent
754ba18af0
commit
1fe5928818
@ -217,7 +217,7 @@ class PowerViewShade(ShadeEntity, CoverEntity):
|
|||||||
_LOGGER.debug("Raw data update: %s", self._shade.raw_data)
|
_LOGGER.debug("Raw data update: %s", self._shade.raw_data)
|
||||||
position_data = self._shade.raw_data.get(ATTR_POSITION_DATA, {})
|
position_data = self._shade.raw_data.get(ATTR_POSITION_DATA, {})
|
||||||
if ATTR_POSITION1 in position_data:
|
if ATTR_POSITION1 in position_data:
|
||||||
self._current_cover_position = position_data[ATTR_POSITION1]
|
self._current_cover_position = int(position_data[ATTR_POSITION1])
|
||||||
self._is_opening = False
|
self._is_opening = False
|
||||||
self._is_closing = False
|
self._is_closing = False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user