1
0
mirror of https://github.com/home-assistant/core.git synced 2025-06-27 00:17:10 +00:00

26 Commits

Author SHA1 Message Date
David Knowles
6f339541c6
Fix Hydrawise data not refreshing ()
Co-authored-by: Robert Resch <robert@resch.dev>
2024-01-02 12:46:39 +01:00
David Knowles
7746a94543
Fix Hydrawise watering time duration unit ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-12-27 13:20:09 +01:00
David Knowles
0899be6d4b
Migrate Hydrawise to an async client library ()
* Migrate Hydrawise to an async client library

* Changes requested during review

* Additional changes requested during review
2023-11-16 00:59:37 +01:00
David Knowles
1888311800
Hydrawise: Explicitly set switch state on toggle ()
Explicitly set switch state on toggle
2023-11-12 23:09:08 +01:00
David Knowles
f160fa4bc3
Make Hydrawise initialize data immediately () 2023-10-30 15:18:59 +01:00
David Knowles
96aba1c1a6
Add tests to Hydrawise ()
* Add tests to Hydrawise

* Update tests/components/hydrawise/test_binary_sensor.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Changes requested during review

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-10-06 14:42:08 +02:00
David Knowles
73cfe659ea
Make Hydrawise compliant with new naming standards ()
* Make Hydrawise compliant with new naming standards

* Update binary_sensor.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-09-26 14:34:43 +02:00
David Knowles
f8a8fe760d
Add config flow to Hydrawise ()
* Add config flow to Hydrawise

* Raise an issue when a YAML config is detected

* Add a test for YAML import

* Add missing __init__.py

* Update CODEOWNERS

* Update requirements_test_all.txt

* Add config flow data to strings.json

* Hande scan_interval not being in YAML on import

* Fix requirements

* Update deprecation dates

* Update requirements_test_all.txt

* Changes from review

* Update homeassistant/components/hydrawise/__init__.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Add already_configured to strings.json

* Add back setup_platform functions

* Apply suggestions from code review

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Add back setup_platform

* Update requirements_test_all.txt

* Run black on hydrawise/*.py

* Add missing import of HOMEASSISTANT_DOMAIN

* Use more specific errors in config flow

* Add additional tests

* Update config flow to use pydrawise.legacy

* Re-work YAML deprecation issues

* Revert some changes to binary_sensor, as requested in review

* Changes requested during review

* Apply suggestions from code review

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Remove unused STE_USER_DATA_SCHEMA

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update comment in setup_platform

* Re-work the config flow again

* Apply suggestions from code review

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update tests

* Add back the _default_watering_timer attribute

* Bump deprecation dates

* Update requirements_test_all.txt

* Update CODEOWNERS

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-09-24 00:03:07 +02:00
David Knowles
2542c5f259
Fix Hydrawise zone addressing () 2023-07-27 15:57:36 +02:00
David Knowles
d973e43b90
Move Hydrawise to a supported library () 2023-07-10 23:26:02 -05:00
Marc Mueller
64118ee011
Improve hydrawise typing ()
* Improve hydrawise generic typing

* Enable strict typing

* Remove unused code
2023-05-25 07:58:59 +02:00
David Knowles
ace45f31ff
Add a DataUpdateCoordinator to Hydrawise ()
* Add a DataUpdateCoordinator to Hydrawise

* Replace DATA_HYDRAWISE with DOMAIN

* Replace persistent notification with a ConfigEntryNotReady exception

* Changes requested during PR review

* Add a type annotation to the `monitored_conditions` field.

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-05-24 14:07:37 +02:00
David Knowles
4d44d60e73
Move HydrawiseEntity into entity.py () 2023-05-22 15:47:32 +02:00
David Knowles
3d6d650a16
Move Hydrawise constants into const.py () 2023-05-22 15:11:32 +02:00
epenet
bb3e0633a4
Add init return type to integrations ()
Add type hints to integrations
2023-02-06 11:37:25 +01:00
epenet
a1374963d1
Improve entity type hints [h] () 2022-08-30 20:55:01 +02:00
epenet
f39531dcfc
Add switch setup type hints [g-m] ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 19:23:11 +01:00
epenet
237a8a8331
Use new enums in hydrawise ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-14 13:06:55 +01:00
Marc Mueller
70cc6295b5
Use EntityDescription - hydrawise () 2021-09-27 17:35:09 +02:00
David Ryan
29adc6a27b
Support Hydrawise API v1.4 ()
* Now supports Hydrawise API v1.4

* Removed dependency and codeowners name.

* Update CODEOWNERS to include hydrawise

* Changes made from review comments.

* Clean up update.

* Added device class for timestamp and switch. Consolodate methods to parent class.

* Cap next_cycle at 2 years to prevent time overflow.

* Addressed review comments.

* Updated DEVICE_MAP and icon() based on review comments.
2020-06-21 16:55:47 -05:00
Erik Montnemery
066e921a8b
Rename SwitchDevice to SwitchEntity () 2020-04-26 18:50:37 +02:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
cgtobi
2c07bfb9e0 Remove dependencies and requirements ()
* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit fe7171b4cd30889bad5adc9a4fd60059d05ba5a7.

* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit 391355ee2cc53cbe6954f940062b18ae34b05621.

* Remove dependencies and requirements

* Fix flake8 complaints

* Fix more flake8 complaints

* Revert non-component removals
2019-04-12 10:13:30 -07:00
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ()
* Use relative imports inside integrations

* Lint

* Fix automation tests

* Fix scene imports
2019-03-20 22:56:46 -07:00
Fabian Affolter
161c368c9d Update file header ()
* Update file header

* Update __init__.py
2019-02-13 20:35:12 -08:00
Paulus Schoutsen
e2d3c27e85
Embed all platforms into components ()
* Consolidate all components with platforms

* Organize tests

* Fix more tests

* Fix Verisure tests

* one final test fix

* Add change

* Fix coverage
2019-02-02 07:13:16 -08:00