From 1fe59288181549cb2e4d8dd7ff992b53bda16ebc Mon Sep 17 00:00:00 2001 From: Jason Heddings Date: Wed, 21 Oct 2020 09:37:23 -0600 Subject: [PATCH] Handle type error in hunterdouglas_powerview (#42137) --- homeassistant/components/hunterdouglas_powerview/cover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/hunterdouglas_powerview/cover.py b/homeassistant/components/hunterdouglas_powerview/cover.py index 48b5f86cd02..d96beec53ae 100644 --- a/homeassistant/components/hunterdouglas_powerview/cover.py +++ b/homeassistant/components/hunterdouglas_powerview/cover.py @@ -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