Commit Graph

25 Commits (dev)

Author SHA1 Message Date
Maciej Bieniek 8a67e89e91
Improve category map for air quality and pollen sensors in AccuWeather ()
* Fix typo

* Improve category map for air quality and pollen

* Update test snapshot
2025-03-09 16:18:26 +02:00
Maciej Bieniek 06fd6442b6
Use the set language for condition sensors in Accuweather integration ()
* Use the set language for condition sensors

* Update strings

* Update test snapshots

* Add missing string
2025-03-08 21:03:25 +02:00
Maciej Bieniek e7076ac83f
Use separate data coordinators for AccuWeather observation and forecast ()
* Remove forecast option

* Update strings

* Use separate DataUpdateCoordinator for observation and forecast

* Fix tests

* Remove unneeded variable

* Separate data coordinator classes

* Use list comprehension

* Separate coordinator clasess to add type annotations

* Test the availability of the forecast sensor entity

* Add DataUpdateCoordinator types

* Use snapshot for test_sensor()

---------

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-04-17 00:00:16 +02:00
Marc Mueller ff3a801936
Add empty line after module docstring [a-d] () 2024-03-08 14:51:32 +01:00
Erik Montnemery b1053e8077
Map accuweather weather condition codes once ()
Map accuweather condition codes once
2023-08-16 20:20:47 +02:00
Maciej Bieniek 8d21e2b168
Use metric units internally in Accuweather integration ()
* Use metric units internally

* Remove unnecessary code

* Simplify sensor classes

* Remove AccuWeatherForecastSensor class

* Update wind speed value in test

* Return suggested_unit_of_measurement for wind entities

* Clean test

* Use _attr_suggested_unit_of_measurement

* Remove _get_suggested_unit()

* Remove unnecessarey code
2023-03-30 13:11:33 +02:00
Robert Hillis 9c6780f76a
Rework Accuweather sensors () 2022-08-26 22:11:25 -04:00
Maciej Bieniek 05b463b282
Migrate AccuWeather to new entity naming style ()
* Use new entity naming style

* Move AccuWeatherSensorDescription and SENSOR consts to sensor platform

* Remove duplicate code

* Suggested change

* Format url
2022-07-21 18:38:59 +02:00
epenet d03b73eb23
Use new DeviceClass enums in accuweather ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:57:36 -08:00
Tobias Sauerwein d619a86b4e
Use state class enums in AccuWeather () 2021-12-02 08:24:59 +01:00
Maciej Bieniek 648e649718
Use SensorEntityDescription in AccuWeather integration ()
* Use SensorEntityDescription

* Add missing type for entity_description

* Use tuples instead of lists

* Suggested change
2021-07-28 10:26:14 +02:00
Maciej Bieniek e6c850136c
Add support for state_class to AccuWeather integration ()
* Add support for state_class

* Use get() method
2021-06-25 10:06:15 +02:00
Maciej Bieniek 2aed268fb7
Remove `undo_listener` variable in AccuWeather integration () 2021-06-20 21:40:04 -07:00
Maciej Bieniek ccd8e1332c
Address late review comments for AccuWeather integration ()
* Remove unnecessary converting datetime to str

* Address late comments
2021-05-20 09:29:10 +02:00
Maciej Bieniek bce5f8ee05
Improve AccuWeather type annotations ()
* Improve type annotations

* Remove unused argument

* Simplify state logic

* Fix uvindex state

* Fix type for logger

* Increase tests coverage

* Fix pylint arguments-differ error

* Suggested change

* Suggested change

* Remove unnecessary variable

* Remove unnecessary conditions

* Use int instead of list for forecast days

* Add enabled to sensor types dicts

* Fix request_remaining conversion and tests

* Run hassfest

* Suggested change

* Suggested change

* Do not use StateType
2021-05-19 09:37:16 +01:00
tkdrob 4fdb617e22
Clean up constants ()
* Clean up constants

* fix imports
2021-02-23 09:56:44 +01:00
Chris 176415b045
Fix AccuWeather condition mapping () 2021-01-01 15:40:28 +01:00
Abílio Costa 896f51fd82
Add Wind to Accuweather sensors () 2020-12-19 16:10:02 +01:00
springstan dd4f41c1db
Use weather attribute conditions constants () 2020-11-20 21:04:03 +01:00
springstan 30b94892c4
Use strings instead of f-strings for constants () 2020-11-09 10:09:53 +01:00
springstan 06a133c3e9
Add and use length millimeters constant ()
* Add and use length millimeters constant

* Fix pylint error

* Fix broken accuweather sensor test
2020-09-22 21:09:17 -05:00
springstan d2b1918e9c
Drop UNIT_ prefix for percentage constant () 2020-09-05 21:09:14 +02:00
Maciej Bieniek 56f8ced267
Add device_info property for AccuWeather integration () 2020-08-05 12:50:34 +02:00
Maciej Bieniek a57dca1e11
Add sensor platform for AccuWeather integration ()
* Add sensor platform

* Fix typo
2020-08-02 09:22:51 -05:00
Maciej Bieniek 581c4a4edd
Add AccuWeather integration ()
* Initial commit

* Fix strings

* Fix unit system

* Add config_flow tests

* Simplify tests

* More tests

* Update comment

* Fix pylint error

* Run gen_requirements_all

* Fix pyline error

* Round precipitation and precipitation probability

* Bump backend library

* Bump backend library

* Add undo update listener on unload

* Add translation key for invalid_api_key

* Remove entity_registry_enabled_default property

* Suggested change

* Bump library
2020-07-24 15:59:15 -05:00