naver_weather
naver_weather copied to clipboard
재부팅 시 네이버 날씨가 데이터를 읽어오지를 못합니다.
로거: homeassistant.components.websocket_api.http.connection 소스: custom_components/naver_weather/weather.py:158 통합구성요소: Home Assistant WebSocket API (관련 문서, 문제) 처음 발생: 18:45:51 (2 발생) 마지막 로그인: 18:46:06
[281472676640320] Error handling message: Unknown error (unknown_error) 송홍진 from 211.185.197.89 (Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Home Assistant/2024.6 (io.robbie.HomeAssistant; build:2024.696; iOS 17.5.1) Mobile/HomeAssistant, like Safari) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response await func(hass, connection, msg) File "/usr/src/homeassistant/homeassistant/components/weather/websocket_api.py", line 103, in ws_subscribe_forecast await entity.async_update_listeners({forecast_type}) File "/usr/src/homeassistant/homeassistant/components/weather/init.py", line 970, in async_update_listeners native_forecast_list: list[Forecast] | None = await getattr( ^^^^^^^^^^^^^^ File "/config/custom_components/naver_weather/weather.py", line 131, in async_forecast_daily return self._forecast(WeatherEntityFeature.FORECAST_DAILY) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/naver_weather/weather.py", line 158, in _forecast for data in self.api.forecast: ^^^^^^^^^^^^^^^^^ AttributeError: 'NWeatherAPI' object has no attribute 'forecast'
재부팅 후 '다시 읽어오기'를 실행하면 정상적으로 데이터를 불러옵니다.
Core: 2024.7.3 Supervisor: 2024.06.2 Operating System: 12.4 프론트엔드: 20240710.0