mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
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 commit4946d91779. * 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 commit53b78b3283. * 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
This commit is contained in:
committed by
Martin Hjelmare
parent
2b6c5eeb1d
commit
17750a604e
@@ -120,6 +120,7 @@ TEST_REQUIREMENTS = (
|
||||
"pylitejet",
|
||||
"pymfy",
|
||||
"pymonoprice",
|
||||
"pynws",
|
||||
"pynx584",
|
||||
"pyopenuv",
|
||||
"pyotp",
|
||||
|
||||
Reference in New Issue
Block a user