We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cac83f8 commit cb01137Copy full SHA for cb01137
custom_components/panasonic_cc/panasonic.py
@@ -46,8 +46,8 @@ async def do_update(self):
46
data= await self.hass.async_add_executor_job(self._api.get_device,self.id)
47
except:
48
_LOGGER.debug("Error trying to get device {id} state, probably expired token, trying to update it...".format(**self.device))
49
- self._api.login()
50
- data = self._api.get_device(self.id)
+ await self.hass.async_add_executor_job(self._api.login)
+ data= await self.hass.async_add_executor_job(self._api.get_device,self.id)
51
52
if data is None:
53
self._available = False
0 commit comments