Commit Graph

107 Commits (40431a9f7e5012aa22807d02b6df683308300d87)

Author SHA1 Message Date
Marc Mueller bf8bd5ff21
Use dict.get instead of inline if () 2024-02-05 13:56:10 +01:00
Jan-Philipp Benecke 95aea1488d
Add pylint plugin to check if coordinator is placed in its own module ()
* 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 ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-18 16:28:13 -10:00
Erik Montnemery 94d22c936e
Avoid mutating entity descriptions in tomorrowio () 2023-12-18 13:57:11 +01:00
Joost Lekkerkerker d2f8c527a5
Add entity translations to Tomorrow.io () 2023-10-25 12:15:09 +02:00
Dennis e5a151c4c3
Add state classes to Tomorrowio sensors () 2023-09-26 12:33:39 +02:00
Joakim Plate 5f20725fd5
Remove _next_refresh variable in update coordinator ()
* Remove _next_refresh variable

* Adjust tomorrowio
2023-09-14 22:32:50 +02:00
lymanepp b76ba002e2
Fix missing dew point and humidity in tomorrowio forecasts ()
* Fix missing dew point and humidity in tomorrowio forecasts

* Add assertion for correct parameters to realtime_and_all_forecasts method
2023-09-07 22:12:18 -04:00
Joost Lekkerkerker 4812b21ffd
Remove slugify from tomorrowio unique id () 2023-09-04 19:28:44 +02:00
Erik Montnemery 9dac6a2948
Use loop.time in DataUpdateCoordinator () 2023-08-28 10:16:34 -05:00
Erik Montnemery c47983621c
Teach CoordinatorWeatherEntity about multiple coordinators () 2023-08-24 11:28:20 +02:00
Erik Montnemery 3e7ec88703
Add CoordinatorWeatherEntity () 2023-08-21 23:10:16 +02:00
Dennis 78f0d8bc9c
Add/Modify tomorrow.io sensor entity icons () 2023-08-21 21:59:56 +02:00
lymanepp f6a9be937b
Add humidity and dew point to tomorrow.io integration ()
* Add humidity and dew point to tomorrow.io integration

* Fix ruff complaints

* Make mypy happy

* Merge emontnemery's changes

* Fix formatting error

* Add fake humidity and dew point to test data (first interval only)

* Fix inconsistency

* Fix inconsistency
2023-08-18 07:41:25 +02:00
Dennis 1954539e65
Add state_class to tomorrowio UV Index ()
* Added state_class to UV Index

Forgot to add a state_class as other sensors got their state_class from their device class. As there is no UV Index device class I left it out.

* Forgotten a comma, whoops

* Changed measurement to string.

* Changed from "measurement" to SensorStateClass
2023-08-17 11:13:11 +02:00
Erik Montnemery 5c1c8dc682
Modernize tomorrowio weather ()
* Modernize tomorrowio weather

* Add test snapshot

* Update snapshots

* Address review comments

* Improve test coverage
2023-08-16 20:22:38 +02:00
Erik Montnemery 045c327928
Move DeviceInfo from entity to device registry ()
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
lymanepp 4089bd43da
Fix tomorrowio integration for new users ()
The tomorrow.io integration isn't working for new users due to changes made by tomorrow.io. This fixes that with the following changes:
* Add 60 minute timestep option
* Change default timestep to 60 minutes
2023-08-07 17:54:06 +02:00
Raman Gupta 67e3203d00
Add tomorrow.io state translations and dynamically assign enum device class ()
* Add state translations and dynamically assign enum device class

* Reference existing keys

* Handle additional entity descriptions
2023-07-19 09:50:09 +02:00
Raman Gupta 657fdb075a
Bump pytomorrowio to 0.3.6 () 2023-07-17 09:25:47 +02:00
Dennis edcae75812
Add UV Index and UV Health Concern sensors to tomorrow.io () 2023-07-15 14:58:40 -04:00
Erik Montnemery 2406b235b4
Name unnamed binary sensors by their device class ()
* Name unnamed binary sensors by their device class

* Update type annotations

* Fix loading of entity component translations

* Add test

* Update integrations

* Set abode and rfxtrx binary_sensor name to None

* Revert changes in homekit_controller
2023-06-13 19:48:54 +02:00
Erik Montnemery a71c097aeb
Revert "Allow setting an entity's name by its device class" () 2023-05-25 17:20:54 +02:00
Erik Montnemery 67c1051305
Allow setting an entity's name by its device class ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-05-09 18:55:55 +02:00
Erik Montnemery b0b1d8143f
Sort manifests 10 () 2023-02-08 20:41:50 +01:00
Franck Nijhof 939eef3b28
Remove translations from Core ()
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
GitHub Action f475446ebf [ci skip] Translation update 2023-02-06 00:23:07 +00:00
Franck Nijhof ca1a12898c
Enable Ruff D212 () 2023-02-03 23:08:48 +01:00
GitHub Action ce79b26ab6 [ci skip] Translation update 2023-02-03 00:25:31 +00:00
GitHub Action 0f80932709 [ci skip] Translation update 2023-02-02 00:25:01 +00:00
GitHub Action 0f6f63da64 [ci skip] Translation update 2023-01-29 00:26:29 +00:00
GitHub Action 072f228e4d [ci skip] Translation update 2023-01-28 00:23:36 +00:00
GitHub Action 7ab88fa713 [ci skip] Translation update 2023-01-26 00:23:39 +00:00
J. Nick Koston 540eb8de16
Migrate tomorrowio to use async_forward_entry_setups ()
Replaces deprecated async_setup_platforms with async_forward_entry_setups
2023-01-25 10:21:06 +01:00
GitHub Action 9636fe4602 [ci skip] Translation update 2023-01-25 00:24:21 +00:00
Ville Skyttä 5f0adfe6e4
Add missing config flow abort strings ()
* Add missing `already_configured` and `already_in_progress` abort strings

* Note required strings.json entries in config_entries aborting functions
2023-01-24 08:59:32 +02:00
GitHub Action d1ecc418bb [ci skip] Translation update 2023-01-19 00:25:04 +00:00
GitHub Action 77f9548e51 [ci skip] Translation update 2023-01-15 00:25:52 +00:00
GitHub Action dffc913f9e [ci skip] Translation update 2023-01-14 00:22:57 +00:00
GitHub Action 2976f843b5 [ci skip] Translation update 2023-01-07 00:22:33 +00:00
Marc Mueller 7da434f455
Improve DataUpdateCoordinator typing in integrations (7) () 2023-01-02 12:57:15 +01:00
GitHub Action b9753a9f92 [ci skip] Translation update 2022-12-13 00:27:47 +00:00
GitHub Action 6745f0c56a [ci skip] Translation update 2022-12-12 00:24:56 +00:00
GitHub Action 1e0345a377 [ci skip] Translation update 2022-12-10 00:21:35 +00:00
GitHub Action f25017313a [ci skip] Translation update 2022-12-09 00:24:29 +00:00
epenet 6c8823fc14
Use Irradiance device class in tomorrowio () 2022-12-08 23:52:55 +01:00
GitHub Action 3de8185506 [ci skip] Translation update 2022-12-08 00:21:50 +00:00
GitHub Action 1f3e5fb4fc [ci skip] Translation update 2022-12-07 00:24:08 +00:00
GitHub Action 3ab9a14ce7 [ci skip] Translation update 2022-12-06 00:21:31 +00:00
Franck Nijhof 226a880645
Use enum sensor device class in Tomorrow.io () 2022-12-05 13:17:49 +01:00