1
0
mirror of https://github.com/home-assistant/core.git synced 2025-10-09 11:49:27 +00:00
Commit Graph

59 Commits

Author SHA1 Message Date
Marc Mueller
a033574ee2 Add empty line after module docstring [r] () 2024-03-08 15:05:07 +01:00
Joost Lekkerkerker
b8629028da Add icon translations to Rainmachine () 2024-03-04 15:45:48 +01:00
Aaron Bach
d5c1049bfe Remove unnecessary RainMachine entity description mixins () 2024-01-16 15:04:32 -10: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
Seth
5ac149a760 Remove state class from RainMachine TIMESTAMP sensors () 2023-09-15 14:33:17 +02:00
Joost Lekkerkerker
29d7535b7b Add entity translations to Rainmachine () 2023-07-07 18:27:44 +02:00
epenet
4a3c0cd0a8 Adjust docstrings for ruff D404 () 2023-03-03 11:26:13 +01:00
Erik Montnemery
cc564026fa Move EntityCategory to homeassistant.const ()
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
epenet
b44e8673a8 Use WATER device class in rainmachine () 2022-12-09 10:19:18 -05:00
Aaron Bach
d72b8a025f Remove previously-deprecated RainMachine sensors () 2022-10-27 10:25:07 +02:00
shbatm
e9a3982560 Add additional sensors to RainMachine () 2022-10-25 08:07:31 -06:00
Aaron Bach
48744bfd68 Replace RainMachine freeze protection temperature sensor with a select ()
* Migrate two RainMachine binary sensors to config-category switches

* Removal

* Replace RainMachine freeze protection temperature sensor with a select

* Fix CI

* Show options in current unit system

* Have message include what entity is replacing this sensor

* Don't define a method for every dataclass instance

* Add issue registry through helper

* Breaking change -> deprecation

* Naming

* Translations

* Remove extraneous list

* Don't swallow exception

* Don't be prematurely defensive

* Better Repairs instructions
2022-09-22 13:19:33 -06:00
Aaron Bach
9fc9d50e07 Fix bug with 1st gen RainMachine controllers and unknown API calls ()
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-09-08 16:41:09 -04:00
Aaron Bach
847f150a78 Modify RainMachine to store a single dataclass in hass.data ()
* Modify RainMachine to store a single dataclass in `hass.data`

* Pass one object around instead of multiple
2022-08-03 16:23:42 -06:00
Aaron Bach
fbde347e64 Move RainMachine utils to the correct location ()
* Move RainMachine utils to the correct location

* Imports
2022-08-03 22:24:55 +03:00
Aaron Bach
a499dfb8ff Fix AssertionError in RainMachine () 2022-07-23 20:06:10 -06:00
Aaron Bach
a4d5ecb8ec Migrate RainMachine to new entity naming style () 2022-07-10 21:27:01 +02:00
Aaron Bach
e6d115e765 Add time remaining sensors for RainMachine programs () 2022-06-29 09:27:34 -05:00
Aaron Bach
db0f089a2e Fix bugs with RainMachine zone run time sensors () 2022-06-07 16:14:40 -07:00
Aaron Bach
a6f6f0ac5e Fix unhandled exception when RainMachine coordinator data doesn't exist () 2022-06-05 15:33:27 -10:00
Aaron Bach
a3e1b285cf Alter RainMachine to not create entities if the underlying data is missing () 2022-05-31 13:09:07 -06:00
Aaron Bach
8e75547ca4 Guard against missing data in 1st generation RainMachine controllers () 2022-05-30 14:36:58 -07:00
Aaron Bach
6cf7973a49 Eliminate duplicated run state logic in RainMachine () 2022-04-13 12:26:30 -10:00
Aaron Bach
c7b5d7107f Fix issue with relative time-based state updates in RainMachine zones ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-13 10:41:48 -10:00
Robert Hillis
d660d68c34 Use enums in rainmachine () 2021-12-16 08:36:16 -07:00
Aaron Bach
8bc10db0bb Make sure RainMachine data storage conforms to standards () 2021-10-22 12:14:58 +02:00
Aaron Bach
745e42621b Add entity categories for appropriate RainMachine entities () 2021-10-20 14:57:28 -07:00
Aaron Bach
0fe5baa425 Rework RainMachine entity ID generation () 2021-10-19 10:10:51 -10:00
J. Nick Koston
2edad82078 Fix order of arguments in rainmachine sensors () 2021-10-17 17:44:48 +02:00
Aaron Bach
f13eeee969 Add configuration URL to RainMachine () 2021-10-15 17:33:26 -10:00
Aaron Bach
2c348dd2d7 Add long-term statistics for RainMachine sensors ()
* Add long-term statistics for RainMachine sensors

* Code review
2021-09-14 22:06:40 +02:00
Aaron Bach
6bc5c1c9af Finish EntityDescription implementation for RainMachine () 2021-08-25 08:36:25 -06:00
Marc Mueller
8522538d8f Use EntityDescription - rainmachine () 2021-08-23 12:23:35 -05:00
Erik Montnemery
e558b3463e Move temperature conversions to sensor base class (6/8) ()
* Move temperature conversions to entity base class (6/8)

* Fix tests
2021-08-12 17:40:55 +02:00
Erik Montnemery
1a74fd7a14 Set device_class on temperature sensors R-Z () 2021-07-12 18:53:52 +02:00
Aaron Bach
8c0559cc57 Remove redundant property definitions in RainMachine ()
* Remove redundant property definitions in RainMachine

* Incorrect attribute name
2021-07-03 11:23:52 -05:00
Ruslan Sayfutdinov
cbaeec2a4e Use AddEntitiesCallback type, pt.2 () 2021-04-30 20:38:59 +02:00
Erik Montnemery
64bc9a8196 Migrate integrations r-s to extend SensorEntity () 2021-03-22 19:54:14 +01:00
Aaron Bach
bba7c15d79 Migrate RainMachine to DataUpdateCoordinator () 2020-11-06 10:58:50 +01:00
Philip Allgaier
dde6305549 Cleanup unused loggers (components N-Z + tests) () 2020-10-16 21:24:08 -05:00
springstan
5a12056e59 Add and use volume cubic constants () 2020-09-15 19:59:26 +02:00
springstan
78d87dc40f Use TEMP_CELSIUS constant () 2020-04-10 19:17:46 +02:00
Aaron Bach
f53dfc4308 Don't reinvent callback handler removal logic in several integ… () 2020-04-05 22:36:23 -07:00
Franck Nijhof
e8a0abd107 String formatting improvements ()
* String formatting improvements

* Found another one
2020-04-04 18:21:14 +02:00
Aaron Bach
0c49c8578b Remove unnecessary awaits in RainMachine ()
* Remove unnecessary awaits in RainMachine

* Cleanup
2020-03-17 07:00:54 -04:00
Aaron Bach
4c4f726323 Refactor RainMachine switch platform ()
* Import constants sanely

* Linting

* Rename data constants for consistency

* Refactor RainMachine switch platform

* Comments

* Cleanup

* Refactor switch and sensor API calls to be separate

* Linting

* Make sure zones are updated in appropriate service calls

* Correctly decrement

* Linting

* Don't do weird inheritance

* Ensure service calls update data properly

* Docstring

* Docstring

* Errors can be logged without string conversion

* Code review comments
2020-01-25 20:27:35 -07:00
Aaron Bach
550aa6a0a5 Add smarter API usage for RainMachine ()
* Make RainMachine smarter with API usage

* Remove debug statements

* Fix deregistration

* Code review comments

* Code review

* Use an asyncio.Lock

* Remove unnecessary guard clause

* Ensure registation lock per API category
2020-01-24 21:31:14 -08:00
Aaron Bach
73a55825af Remove monitored conditions from RainMachine ()
* Remove monitored conditions from RainMachine

* Migrate config entry

* Revert "Migrate config entry"

This reverts commit 84fcf5120f.

* Code review comments

* Disable some entities by default
2020-01-22 20:49:47 -08:00
Franck Nijhof
fb35d382e1 Remove all empty *_setup_platform() from integrations ()
* Remove all empty *_setup_platform() from integrations

* Fix tests for smartthings

* Fix tests for heos
2020-01-21 12:38:38 +01:00
Aaron Bach
856db4d122 Fix incorrect Rainmachine dict lookups () 2020-01-07 10:43:12 -07:00