Handle type error in hunterdouglas_powerview (#42137)

pull/42171/head
Jason Heddings 2020-10-21 09:37:23 -06:00 committed by GitHub
parent 754ba18af0
commit 1fe5928818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ class PowerViewShade(ShadeEntity, CoverEntity):
_LOGGER.debug("Raw data update: %s", self._shade.raw_data)
position_data = self._shade.raw_data.get(ATTR_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_closing = False