Commit Graph

17 Commits (a6e36a6eb944ae7279e41a3cab9ed47b179b2c5e)

Author SHA1 Message Date
epenet d03b73eb23
Use new DeviceClass enums in accuweather (#61246)
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 (#60813) 2021-12-02 08:24:59 +01:00
Maciej Bieniek 648e649718
Use SensorEntityDescription in AccuWeather integration (#53604)
* 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 (#51510)
* 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 (#52032) 2021-06-20 21:40:04 -07:00
Maciej Bieniek ccd8e1332c
Address late review comments for AccuWeather integration (#50866)
* Remove unnecessary converting datetime to str

* Address late comments
2021-05-20 09:29:10 +02:00
Maciej Bieniek bce5f8ee05
Improve AccuWeather type annotations (#50616)
* 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 (#46924)
* Clean up constants

* fix imports
2021-02-23 09:56:44 +01:00
Chris 176415b045
Fix AccuWeather condition mapping (#44710) 2021-01-01 15:40:28 +01:00
Abílio Costa 896f51fd82
Add Wind to Accuweather sensors (#44364) 2020-12-19 16:10:02 +01:00
springstan dd4f41c1db
Use weather attribute conditions constants (#39945) 2020-11-20 21:04:03 +01:00
springstan 30b94892c4
Use strings instead of f-strings for constants (#40619) 2020-11-09 10:09:53 +01:00
springstan 06a133c3e9
Add and use length millimeters constant (#40116)
* 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 (#39383) 2020-09-05 21:09:14 +02:00
Maciej Bieniek 56f8ced267
Add device_info property for AccuWeather integration (#38480) 2020-08-05 12:50:34 +02:00
Maciej Bieniek a57dca1e11
Add sensor platform for AccuWeather integration (#38312)
* Add sensor platform

* Fix typo
2020-08-02 09:22:51 -05:00
Maciej Bieniek 581c4a4edd
Add AccuWeather integration (#37166)
* 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