Commit Graph
55 Commits
Author SHA1 Message Date
epenet 4a3c0cd0a8 Adjust docstrings for ruff D404 (#89077) 2023-03-03 11:26:13 +01:00
Erik Montnemery cc564026fa Move EntityCategory to homeassistant.const (#87792)
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
Marc Mueller 45b4b0e990 Import ParamSpec from typing [Py310] (#86413)
* Import ParamSpec from typing [Py310]

* Update additional imports
2023-01-23 07:28:43 +01:00
Aaron Bach d62bac9c59 Fix missing RainMachine restrictions switches (#81673) 2022-11-06 13:38:55 -06:00
shbatm e785d04abf Add RainMachine config option to use default run times from app (#80984) 2022-10-26 22:27:08 -06:00
Aaron Bach cee8f2cabb Don't add RainMachine restriction switches if underlying data is missing (#80502) 2022-10-18 11:40:49 +03:00
Aaron Bach 55b214c911 Replace two RainMachine binary sensors with config switches (#76478) 2022-09-23 17:05:07 -06:00
Aaron Bach 8ea9f975fd Fix bug potential in RainMachine switches by simplifying architecture (#76417)
* Fix bug potential in RainMachine switches by simplifying architecture

* Better typing (per code review)

* Broader error catch
2022-08-07 14:50:49 -06:00
Aaron Bach 847f150a78 Modify RainMachine to store a single dataclass in hass.data (#75460)
* 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 (#76051)
* Move RainMachine utils to the correct location

* Imports
2022-08-03 22:24:55 +03:00
Aaron Bach a4d5ecb8ec Migrate RainMachine to new entity naming style (#74754) 2022-07-10 21:27:01 +02:00
Aaron Bach 6b3f6e22d0 Fix invalid RainMachine syntax (#72732) 2022-05-30 17:48:42 -06:00
Aaron Bach 8e75547ca4 Guard against missing data in 1st generation RainMachine controllers (#72632) 2022-05-30 14:36:58 -07:00
Aaron Bach 6cf7973a49 Eliminate duplicated run state logic in RainMachine (#70009) 2022-04-13 12:26:30 -10:00
Aaron Bach 6853db71e3 Reduce precision of over-precise RainmMachine switch attributes (#70006)
* Reduce precision of over-precise RainmMachine switch attributes

* linting

* Simplify
2022-04-13 15:10:07 -06:00
Aaron BachandJ. Nick Koston c7b5d7107f Fix issue with relative time-based state updates in RainMachine zones (#69206)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-13 10:41:48 -10:00
Aaron Bach 2133eaa3a1 Fix bug when starting a RainMachine zone via service call (#64213) 2022-01-16 16:38:23 -07:00
Aaron Bach dbb4c1b5f0 Replace RainMachine logged errors with HomeAssistantError in service handlers (#62350) 2021-12-19 14:58:34 -07:00
Robert Hillis d660d68c34 Use enums in rainmachine (#62058) 2021-12-16 08:36:16 -07:00
Aaron Bach 566716d697 Ensure that inactive RainMachine switch that is toggled on is toggled back off (#60959) 2021-12-03 21:05:01 -07:00
Aaron Bach 0e4de42539 Alter RainMachine to enable/disable program/zones via separate switches (#59617) 2021-11-22 20:47:01 -07:00
Aaron Bach 8bc10db0bb Make sure RainMachine data storage conforms to standards (#57816) 2021-10-22 12:14:58 +02:00
Aaron Bach f13eeee969 Add configuration URL to RainMachine (#57732) 2021-10-15 17:33:26 -10:00
Aaron Bach 0364405595 Reorganize RainMachine services (#57145)
* Reorganize RainMachine services

* Code review

* Ensure integration services aren't tied to a particular config entry

* Cleanup

* linting

* Code review

* Code review

* Code review

* Code review
2021-10-08 20:03:47 +02:00
Aaron Bach 6bc5c1c9af Finish EntityDescription implementation for RainMachine (#55180) 2021-08-25 08:36:25 -06:00
Ville Skyttä de6e7ea016 Replace *args and **kwargs type hint collections with value types (#54955) 2021-08-21 10:20:09 +03:00
Aaron Bach a6b34924be Enforce strict typing for RainMachine (#53414) 2021-07-27 10:45:44 +02:00
Marc Mueller f6b162bc39 Add pylint CodeStyle extension (#53147) 2021-07-19 06:57:06 -07:00
Aaron Bach 8c0559cc57 Remove redundant property definitions in RainMachine (#52456)
* Remove redundant property definitions in RainMachine

* Incorrect attribute name
2021-07-03 11:23:52 -05:00
Aaron Bach 935f4d16a9 Fix small inconsistencies in RainMachine vegetation and sprinkler types (#52313) 2021-06-29 13:57:28 -04:00
Aaron Bach 04300464da Update RainMachine sprinkler and vegetation types (#52274) 2021-06-29 10:20:11 +02:00
Aaron Bach 5e18b5c189 Fix bug in detecting RainMachine zone soil type (#52273)
* Fix bug in detecting RainMachine zone soil type

* Simplify
2021-06-29 10:09:38 +02:00
Franck Nijhof 2ed386f9e6 Migrate to async_get_current_platform everywhere (#50034) 2021-05-03 09:34:28 -07:00
Ruslan Sayfutdinov cbaeec2a4e Use AddEntitiesCallback type, pt.2 (#49921) 2021-04-30 20:38:59 +02:00
Marc Mueller c07646db5d Update typing syntax (#49480)
* Update typing syntax

* Replace typing imports with ones from collections where possible

* Changes after review
2021-04-20 17:40:41 +02:00
Aaron Bach 7657a5c901 Move RainMachine services to entity services (#44139) 2021-01-04 20:01:14 +01:00
Aaron Bach bba7c15d79 Migrate RainMachine to DataUpdateCoordinator (#42530) 2020-11-06 10:58:50 +01:00
Aaron Bach e61e8fafee Add options flow to RainMachine (#42241)
* Add options flow to RainMachine

* Linting
2020-10-28 15:52:42 -06:00
ktownsend-personal fa09a93cfe add zone status attribute so we can know if queued (#39133)
Before this proposed change, all of the zones related to a running program turn "on", but it's not possible to know which zone is actually running (vs. queued). Adding the mapped state values (they are the same as program status values) as an attribute will allow inspection of all 3 states.
2020-08-22 15:19:20 -06:00
Aaron Bach cc4326276e RainMachine: Add time remaining as a zone attribute (#36361) 2020-06-01 21:49:02 -06:00
Erik Montnemery 066e921a8b Rename SwitchDevice to SwitchEntity (#34673) 2020-04-26 18:50:37 +02:00
Aaron Bach f53dfc4308 Don't reinvent callback handler removal logic in several integ… (#33726) 2020-04-05 22:36:23 -07:00
Franck Nijhof e8a0abd107 String formatting improvements (#33635)
* String formatting improvements

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

* Cleanup
2020-03-17 07:00:54 -04:00
Aaron Bach ac2172333c Use non-deprecated method of instantiating RainMachine client (#31149) 2020-01-26 18:01:59 -07:00
Aaron Bach 4c4f726323 Refactor RainMachine switch platform (#31148)
* 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
Franck Nijhof fb35d382e1 Remove all empty *_setup_platform() from integrations (#31025)
* Remove all empty *_setup_platform() from integrations

* Fix tests for smartthings

* Fix tests for heos
2020-01-21 12:38:38 +01:00
Ville Skyttä 5216477353 Be consistent with Home Assistant and Hass.io spelling (#30500)
* Be consistent with Home Assistant spelling

* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
springstan d9661b408b Move imports to top for rainmachine (#29472) 2019-12-04 21:12:44 -08:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00