Viva pessoal!
Há algum tempo que deixei de ter weather do IPMA.
Penso que foi a partir da actualização do HA para o 0.82.
O erro que dá é o que está em baixo.
Mais alguém tem esteve problema? Como o resolveram?
Obrigado.
2019-01-29 08:24:14 ERROR (MainThread) [homeassistant.components.weather] Error while setting up platform ipma
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/ipma.py", line 72, in async_setup_platform
float(longitude))
File "/usr/local/lib/python3.6/site-packages/pyipma/station.py", line 42, in get
stations = await self.api.stations()
File "/usr/local/lib/python3.6/site-packages/pyipma/api.py", line 59, in stations
for station in data['data']:
TypeError: 'NoneType' object is not subscriptable
2019-01-29 08:24:14 ERROR (MainThread) [homeassistant.components.weather] Error while setting up platform ipma
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/ipma.py", line 72, in async_setup_platform
float(longitude))
File "/usr/local/lib/python3.6/site-packages/pyipma/station.py", line 42, in get
stations = await self.api.stations()
File "/usr/local/lib/python3.6/site-packages/pyipma/api.py", line 59, in stations
for station in data['data']:
TypeError: 'NoneType' object is not subscriptable
2019-01-29 08:24:14 ERROR (MainThread) [homeassistant.components.weather] Error while setting up platform ipma
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/ipma.py", line 72, in async_setup_platform
float(longitude))
File "/usr/local/lib/python3.6/site-packages/pyipma/station.py", line 42, in get
stations = await self.api.stations()
File "/usr/local/lib/python3.6/site-packages/pyipma/api.py", line 59, in stations
for station in data['data']:
TypeError: 'NoneType' object is not subscriptable
2019-01-29 08:24:14 ERROR (MainThread) [homeassistant.components.weather] Error while setting up platform ipma
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/weather/ipma.py", line 72, in async_setup_platform
float(longitude))
File "/usr/local/lib/python3.6/site-packages/pyipma/station.py", line 42, in get
stations = await self.api.stations()
File "/usr/local/lib/python3.6/site-packages/pyipma/api.py", line 59, in stations
for station in data['data']:
TypeError: 'NoneType' object is not subscriptable