Commit Graph

277 Commits

Author SHA1 Message Date
Maciej Bieniek
04982f5e12 Add missing pollen category to AccuWeather (#144185)
* Add extreme level to pollen map

* Sort

* Sort
2025-05-04 13:08:07 +03:00
Norbert Rittel
a29ba51bdb Use common states for sensor levels in accuweather (#142345)
Replace states "Low", "High" and "Very high" with (new) common states.
2025-04-05 22:11:46 +03:00
Maciej Bieniek
29f03f5b87 Add exception translations for AccuWeather integration (#140863)
* Add exception translations

* Improve error strings
2025-03-18 13:23:51 +02:00
Maciej Bieniek
8964af428a Add missing translations for options attribute in AccuWeather integration (#140610)
Add missing translations for options attribute
2025-03-14 19:20:18 +01:00
Maciej Bieniek
8a67e89e91 Improve category map for air quality and pollen sensors in AccuWeather (#140193)
* 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 (#140107)
* 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
7507a9c24e Bump accuweather to version 4.2.0 (#140106)
Bump accuweather to version 4.2.0
2025-03-08 12:50:32 +01:00
Maciej Bieniek
d15f9edc57 Bump accuweather to version 4.1.0 (#139320) 2025-02-26 11:51:35 +01:00
Erik Montnemery
f83c8de8d3 Update signature of platforms' async_setup_entry (#138201) 2025-02-10 21:08:03 +01:00
Norbert Rittel
9a202b5e56 Fix spelling of "AccuWeather" and sentence-casing plus grammar (#137696) 2025-02-07 19:47:05 +02:00
epenet
3472e0e370 Standardize homeassistant imports in component (a-b) (#136821) 2025-01-29 11:37:48 +01:00
Joost Lekkerkerker
e6225e3dcc Drop current quality scale (#131072) 2024-11-20 20:54:15 +01:00
Maciej Bieniek
40fb28a94d Bump accuweather to 4.0.0 (#130868) 2024-11-18 14:12:11 +01:00
epenet
f504c27972 Add ability to pass the config entry explicitly in data update coordinators (#127980)
* Add ability to pass the config entry explicitely in data update coordinators

* Implement in accuweather

* Raise if config entry not set

* Move accuweather models

* Fix gogogate2

* Fix rainforest_raven
2024-10-10 10:20:15 +02:00
Maciej Bieniek
3206979488 Add separate entities for temperature, humidity and pressure in AccuWeather integration (#125041)
* Add temperature, humidity and pressure sensors

* Make uv index sensor disabled by default

* Fix type
2024-09-02 20:46:32 +02:00
Maciej Bieniek
cb672b85f4 Add icon translations to AccuWeather (#119134)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-06-08 15:57:22 +02:00
Maciej Bieniek
27df79daf1 Use translation placeholders in AccuWeather (#118760)
* Use translation placeholder

* Update test snapshot

---------

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-06-08 14:00:55 +02:00
Maciej Bieniek
27e8a4ed6f Add the missing humidity value to the Accuweather daily forecast (#119013)
Add the missing humidity value to the daily forecast

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-06-07 07:23:44 +02:00
Marc Mueller
44049c34f9 Use PEP 695 type alias for ConfigEntry types (#117632) 2024-05-17 15:42:58 +02:00
Maciej Bieniek
57283d16d9 Store AccuWeather runtime data in config entry (#116946)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-05-06 20:06:47 +02:00
Maciej Bieniek
09be56964d AccuWeather tests refactoring (#116923)
* Add mock_accuweather_client

* Improve tests

* Fix exceptions

* Remove unneeded update_listener()

* Fix arguments for fixtures

---------

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-05-06 19:41:48 +02:00
Marc Mueller
f9d95efac0 Improve CoordinatorWeatherEntity generic typing (#116760) 2024-05-04 14:02:23 +02:00
Marc Mueller
5bded2a52d Fix accuweather system_health after data change (#116063) 2024-04-24 10:30:57 +02:00
Maciej Bieniek
e62ae90d81 Bump accuweather to version 3.0.0 (#115820)
Bump accuweather to version 3.0.0

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-04-18 20:24:10 -07:00
Maciej Bieniek
e7076ac83f Use separate data coordinators for AccuWeather observation and forecast (#115628)
* 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
Sid
0d66d298ec Enable Ruff RET504 (#114528)
* Enable Ruff RET504

* fix test

* Use noqa instead of cast

* fix sonos RET504

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-06 11:07:37 +02:00
G Johansson
65230908c6 Remove deprecated forecast attribute from WeatherEntity (#110761)
* Remove deprecated forecast attribute from WeatherEntity

* Fix some

* Ruff

* ipma

* buienradar

* some more

* Some more

* More and more

* strings

* attr_forecast

* Fix nws

* Fix

* remove from coverage

* Remove recorder test

* Review comments
2024-03-27 16:51:29 +01:00
Sid
d5fd005db8 Add ruff rule PIE808 (#113621) 2024-03-17 09:56:26 +01:00
Sid
69564b1a17 Add ruff rule PIE800 (#113619)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-16 16:31:30 -10:00
Maciej Bieniek
3d9a9c3847 Use single_config_entry in Accuweather manifest (#111548)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-03-13 17:38:37 +01:00
Marc Mueller
ff3a801936 Add empty line after module docstring [a-d] (#112697) 2024-03-08 14:51:32 +01:00
Joost Lekkerkerker
0b113b6b71 Remove entity description mixin in Accuweather (#112375) 2024-03-05 16:20:29 +01:00
Erik Montnemery
6fe28d3764 Migrate integrations a-d to generic flowhandler (#111861) 2024-02-29 20:07:14 +01:00
Marc Mueller
c82933175d Use builtin TimeoutError [a-d] (#109678) 2024-02-05 11:31:33 +01:00
Jan-Philipp Benecke
95aea1488d Add pylint plugin to check if coordinator is placed in its own module (#108174)
* Add pylint plugin to check if coordinator is placed in its own module

* Remove unintended changes

* Remove pylint disable and let CI only fail on W,E,F

* Make check conventional

* Apply review suggestion

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Use option instead

* Remove pylint arguments from pre-commit

* Partially revert "Remove pylint disable and let CI only fail on W,E,F"

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-01-29 10:30:19 +01:00
Erik Montnemery
0c2485bc03 Freeze integration entity descriptions (#105984)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-18 16:28:13 -10:00
Maciej Bieniek
b3ff30a9c8 Bump accuweather to version 2.1.1 (#104563) 2023-11-27 09:49:46 +01:00
Maciej Bieniek
531a3e4fa8 Bump accuweather to version 2.1.0 (#103744) 2023-11-10 21:46:15 +01:00
Maciej Bieniek
e08d2408c9 Bump accuweather to version 2.0.1 (#103532) 2023-11-06 21:02:02 +01:00
Maciej Bieniek
5ee14f7f7d Bump accuweather to version 2.0.0 (#102670) 2023-10-24 23:14:05 +02:00
Erik Montnemery
27f7399071 Modernize accuweather weather (#99001) 2023-08-25 16:46:23 +02:00
Erik Montnemery
b1053e8077 Map accuweather weather condition codes once (#98509)
Map accuweather condition codes once
2023-08-16 20:20:47 +02:00
J. Nick Koston
262483f3f6 Replace async_timeout with asyncio.timeout A-B (#98415) 2023-08-15 10:29:28 +02:00
Erik Montnemery
045c327928 Move DeviceInfo from entity to device registry (#98149)
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
Erik Montnemery
66e3d69606 Remove confusing comment from accuweather (#98063) 2023-08-08 22:02:45 +02:00
Maciej Bieniek
12426dfad4 Add entity translations for AccuWeather (#95940)
* Add entity name translations

* Some improvements

* Update tests

* Suggested changes

* day 0 -> today

* night 0 -> tonight

* Fix precipitation
2023-07-29 21:22:53 +02:00
Meow
024d646526 Aligned integration manifest files (#97175) 2023-07-25 08:33:56 +02:00
Franck Nijhof
5e88ca23b3 Remove the use of StateType from AccuWeather (#97109) 2023-07-23 23:30:37 +02:00
Maciej Bieniek
5249660a6a Add uv_index to AccuWeather weather entity (#97015) 2023-07-22 17:11:39 +02:00
Maciej Bieniek
fe9366eee6 Add new properties to the weather entity in Accuweather integration (#95110)
* Add new properties to the current conditions

* Add new properties to forecast

* Use existing constants

* Update tests
2023-06-24 12:38:20 +02:00