Add nearest method to get data for Airly integration (#44288)
* Add nearest method * Add tests * Move urls to consts * Simplify config flow * Fix tests * Update tests * Use in instead get * Fix AirlyError message in tests * Fix manual update entity tests * Clean up tests * Fix after rebase * Increase test coverage * Format the code * Fix after rebase
This commit is contained in:
parent
76537305e2
commit
2e50c1be8e
8 changed files with 102 additions and 27 deletions
|
@ -13,6 +13,7 @@ ATTR_API_PM25_LIMIT = "PM25_LIMIT"
|
|||
ATTR_API_PM25_PERCENT = "PM25_PERCENT"
|
||||
ATTR_API_PRESSURE = "PRESSURE"
|
||||
ATTR_API_TEMPERATURE = "TEMPERATURE"
|
||||
CONF_USE_NEAREST = "use_nearest"
|
||||
DEFAULT_NAME = "Airly"
|
||||
DOMAIN = "airly"
|
||||
MANUFACTURER = "Airly sp. z o.o."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue