-
- Downloads
Add NWS weather (#23647)
* Add nws weather. * Hassfest * Address multiple comments * Add NWS icon weather code link * Add metar fallback. Use metar code from nws observation if normal api is missing data. * only get 1 observation - we dont use more than 1 * add mocked metar for tests * lint * mock metar package for all tests * add check for metar attributes * catch errors in setup * add timeout error * handle request exceptions * check and test for missing observations * refactor to new pynws * change to simpler api * Make py3.5 compatible Remove f string * bump pynws version * gen_requirements * fix wind bearing observation * Revert "Make py3.5 compatible" This reverts commit 4946d91779a6e539ea43e667b2265557a49a0bb5. * Precommit black missed a file? * black test * add exceptional weather condition * bump pynws version * update requirements_all * address comments * move observation and forecast outside try-except-else * Revert "move observation and forecast outside try-except-else" This reverts commit 53b78b32837b55b8a0b61de6192e846f6a486754. * remove else from update forecast block * remove unneeded ConfigEntryNotReady import * add scan_interval, reduce min_time_between_updates * pytest tests * lint test docstring * use async await * lat and lon inclusive in config
Showing
- CODEOWNERS 1 addition, 0 deletionsCODEOWNERS
- homeassistant/components/nws/__init__.py 1 addition, 0 deletionshomeassistant/components/nws/__init__.py
- homeassistant/components/nws/manifest.json 8 additions, 0 deletionshomeassistant/components/nws/manifest.json
- homeassistant/components/nws/weather.py 378 additions, 0 deletionshomeassistant/components/nws/weather.py
- homeassistant/components/weather/__init__.py 3 additions, 3 deletionshomeassistant/components/weather/__init__.py
- requirements_all.txt 3 additions, 0 deletionsrequirements_all.txt
- requirements_test_all.txt 3 additions, 0 deletionsrequirements_test_all.txt
- script/gen_requirements_all.py 1 addition, 0 deletionsscript/gen_requirements_all.py
- tests/components/nws/test_weather.py 274 additions, 0 deletionstests/components/nws/test_weather.py
- tests/fixtures/nws-weather-fore-null.json 80 additions, 0 deletionstests/fixtures/nws-weather-fore-null.json
- tests/fixtures/nws-weather-fore-valid.json 80 additions, 0 deletionstests/fixtures/nws-weather-fore-valid.json
- tests/fixtures/nws-weather-obs-null.json 161 additions, 0 deletionstests/fixtures/nws-weather-obs-null.json
- tests/fixtures/nws-weather-obs-valid.json 161 additions, 0 deletionstests/fixtures/nws-weather-obs-valid.json
- tests/fixtures/nws-weather-sta-valid.json 996 additions, 0 deletionstests/fixtures/nws-weather-sta-valid.json
Loading
Please register or sign in to comment