Commit graph

96 commits

Author SHA1 Message Date
Allen Porter
8c2a2e5c37
Additional fix for rainbird unique id (#101599)
Additiona fix for rainbird unique id
2023-10-07 10:17:08 -07:00
Allen Porter
920bd04099
Fix for rainbird unique id (#101512) 2023-10-06 09:16:06 +02:00
Allen Porter
2d58ab0e1c
Fix rainbird entity unique ids (#101168)
* Fix unique ids for rainbird entities

* Update entity unique id use based on config entry entity id

* Update tests/components/rainbird/test_binary_sensor.py

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

* Rename all entity_registry variables

* Shorten long comment under line length limits

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-10-01 08:12:44 -07:00
Marc Mueller
bd7a86a0a6
Remove async-timeout as core dependency (#100912) 2023-09-26 05:57:10 -05:00
Allen Porter
fa2d77407a
Add Rain Bird irrigation calendar (#87604)
* Initial version of a calendar for the rainbird integration

* Improve calendar support

* Revert changes to test fixtures

* Address ruff error

* Fix background task scheduling

* Use pytest.mark.freezetime to move to test setup

* Address PR feedback

* Make refresh a member

* Merge rainbird and calendar changes

* Increase test coverage

* Readability improvements

* Simplify timezone handling
2023-09-25 20:27:38 -04:00
Allen Porter
8d8c7187d3
Fix rainbird unique id (#99704)
* Don't set a unique id for devices with no serial

* Add additional check for the same config entry host/port when there is no serial

* Update homeassistant/components/rainbird/config_flow.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update tests/components/rainbird/test_config_flow.py

Co-authored-by: Robert Resch <robert@resch.dev>

* Update tests/components/rainbird/test_config_flow.py

Co-authored-by: Robert Resch <robert@resch.dev>

---------

Co-authored-by: Robert Resch <robert@resch.dev>
2023-09-23 23:14:57 +02:00
Erik Montnemery
4f58df1929
Drop useless passing of update_method to DataUpdateCoordinator (#100355) 2023-09-14 10:09:55 +02:00
Joost Lekkerkerker
526b587170
Remove unused variable from rainbird (#99824) 2023-09-07 15:32:03 +02:00
Marc Mueller
063ce9159d
Use asyncio.timeout [o-s] (#98451) 2023-08-15 17:21:49 +02:00
Allen Porter
9ddf11f6cd
Improve rainbird error handling (#98239) 2023-08-14 13:32:08 +02:00
Allen Porter
79991c32dc
Bump pyrainbird to 4.0.0 (#98271) 2023-08-12 13:37:43 -05: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
Allen Porter
e91e32f071
Bump pyrainbird to 3.0.0 (#96610) 2023-07-15 14:11:14 -07:00
Allen Porter
cccf7bba9b
Bump pyrainbird to 2.1.1 (#96601) 2023-07-15 09:02:59 -07:00
Paulus Schoutsen
7859be6481
Add deduplicate translations script (#96384)
* Add deduplicate script

* Fix forecast_solar incorrect key with space

* Fix utf-8

* Do not create references to other arbitrary other integrations

* Add commented code to only allow applying to referencing integrations

* Tweak

* Bug fix

* Add command line arg for limit reference

* never suggest to update common keys

* Output of script

* Apply suggestions from code review

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>

---------

Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2023-07-13 11:52:50 -04:00
Franck Nijhof
62fe4957c9
Migrate integration services (Q-S) to support translations (#96378) 2023-07-12 01:18:22 +02:00
Allen Porter
32b3fa1734
Enable retries on rainbird devices by loading model and version (#96190)
Update rainbird to load device model and version
2023-07-09 16:49:44 -07:00
Joost Lekkerkerker
d2bcb5fa87
Add entity translations to Rainbird (#96030)
* Add entity translations to Rainbird

* Add entity translations to Rainbird
2023-07-06 16:03:01 -07:00
Allen Porter
85e4454d45
Bump pyrainbird to 2.1.0 (#95968) 2023-07-06 10:26:10 +02:00
Paulus Schoutsen
2191fb21fa
Rainbird: use correct device info keys (#95645) 2023-07-01 06:06:01 -04:00
Joost Lekkerkerker
9cf691abdb
Fix explicit device naming for integrations m-r (#95620)
Fix explicit device naming for m-r
2023-06-30 11:34:35 -04:00
G Johansson
5b8e72feda
Fix regression in rainbird (#92745) 2023-05-07 17:11:55 +02:00
G Johansson
e41a75f617
Remove yaml import rainbird (#92599) 2023-05-05 16:53:40 +02:00
G Johansson
835be4758a
Remove deprecated service for rainbird (#92601) 2023-05-05 07:22:07 -07:00
Erik Montnemery
5dfb9cddd6
Sort manifests 8 (#87029) 2023-02-08 20:13:46 +01:00
Allen Porter
37bb1e8948
Improve rainbird device reliability by sending requests serially (#87603)
Send rainbird requests serially
2023-02-06 19:57:16 -08:00
Franck Nijhof
939eef3b28
Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
GitHub Action
ce79b26ab6 [ci skip] Translation update 2023-02-03 00:25:31 +00:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 (#87188) 2023-02-02 18:35:24 +01:00
GitHub Action
0f80932709 [ci skip] Translation update 2023-02-02 00:25:01 +00:00
Allen Porter
4f965f0eca
Bump pyrainbird to 2.0.0 (#86851) 2023-01-29 15:11:56 +01: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
71d7098530 [ci skip] Translation update 2023-01-27 00:25:12 +00:00
GitHub Action
7ab88fa713 [ci skip] Translation update 2023-01-26 00:23:39 +00:00
GitHub Action
9636fe4602 [ci skip] Translation update 2023-01-25 00:24:21 +00:00
Allen Porter
09891ead8d
Add rainbird rain delay number entity, deprecating the sensor and service (#86208)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-01-24 21:16:52 +01:00
Ville Skyttä
5f0adfe6e4
Add missing config flow abort strings (#86180)
* 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
87b2a73460 [ci skip] Translation update 2023-01-18 00:24:40 +00:00
GitHub Action
b81453cb6b [ci skip] Translation update 2023-01-16 00:24:22 +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
f2df72e014 [ci skip] Translation update 2023-01-10 00:25:07 +00:00
GitHub Action
6ce88cd5af [ci skip] Translation update 2023-01-09 00:23:57 +00:00
GitHub Action
0b163aac7d [ci skip] Translation update 2023-01-08 00:26:22 +00:00
Allen Porter
5000c426c6
Add config flow for Rain Bird (#85271)
* Rainbird config flow

Convert rainbird to a config flow. Still need to handle irrigation numbers.

* Add options for irrigation time and deprecate yaml

* Combine exception handling paths to get 100% test coverage

* Bump the rainird config deprecation release

* Apply suggestions from code review

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

* Remove unnecessary sensor/binary sensor and address some PR feedback

* Simplify configuration flow and options based on PR feedback

* Consolidate data update coordinators to simplify overall integration

* Fix type error on python3.9

* Handle yaml name import

* Fix naming import post serialization

* Parallelize requests to the device

* Complete conversion to entity service

* Update homeassistant/components/rainbird/switch.py

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

* Update homeassistant/components/rainbird/config_flow.py

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

* Remove unused import

* Set default duration in options used in tests

* Add separate devices for each sprinkler zone and update service to use config entry

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-01-07 09:34:01 -08:00
Allen Porter
d3c7cbbfb0
Bump pyrainbird to 1.1.0 (#85358) 2023-01-06 22:16:14 -08:00
Marc Mueller
24a34b1739
Improve rainbird generic typing (#84642) 2022-12-27 21:17:20 +01:00
Allen Porter
1807f44e03
Cleanup rainbird controller setup as feedback from previous PR (#84504)
Additional rainbird cleanup from last PR
2022-12-23 19:54:25 -08:00
Allen Porter
490d2cfb71
Move Rainbird to async client library (#84417)
* Bump pyrainbird to 0.7.0 and move to async library

* Share updates across sensors

* Fix test version and delete dead code

* Add test coverage for yaml configuration

* Address PR feedback
2022-12-22 13:00:17 -08:00