Thomas55555
3cda93d001
Add work area sensors to Husqvarna Automower ( #126931 )
...
* Add work area sensors to Husqvarna Automower
* add exists function
* fix tests
* add icons
* docstring
* Update homeassistant/components/husqvarna_automower/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-10-06 16:10:26 +02:00
Thomas55555
204bea8947
Return an error if no error key is provided in Husqvarna Automower ( #127584 )
...
return error
2024-10-05 19:13:21 +02:00
Thomas55555
f53411b95a
Bump aioautomower to 2024.9.3 ( #126769 )
...
* Bump aioautomower to 2024.9.3
* tests
2024-09-25 20:28:22 +02:00
Thomas55555
dc77b2d583
Add work area switch for Husqvarna Automower ( #126376 )
...
* Add work area switch for Husqvarna Automower
* move work area deletion test to separate file
* stale doctsrings
* don't use custom test file
* use _attr_name
* ruff
* add available property
* hassfest
* fix tests
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* constants
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-24 18:57:47 +02:00
Erik Montnemery
d82bff1bc2
Index config entry discovery_keys by discovery domain ( #126563 )
...
* Index config entry discovery_keys by discovery domain
* Add new signal
* Update tests
* Update homeassistant/config_entries.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Fix imports
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-23 21:48:11 +02:00
Erik Montnemery
b2982c18bb
Reinitialize zeroconf discovery flow on unignore ( #125753 )
...
* Reinitialize zeroconf discovery flow on unignore
* Adjust tests
* Improve comments
* Fix logic for updating discovery keys
* Add tests
* Use mock_config_flow helper in new config_entries test
* Add discovery_keys attribute to ConfigEntry
* Update zeroconf rediscovery
* Change type of ConfigEntry.discovery_keys
* Update tests
* Fix DiscoveryKey.from_json_dict and add tests
* Fix test
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-23 16:49:21 +02:00
epenet
7c5dc29981
Prevent leading and trailing spaces in translation values ( #126427 )
...
* Prevent leading and trailing spaces in translation values
* Adjust components
* Tests
2024-09-22 16:01:08 +02:00
Thomas55555
f93bcbaa84
Bump aioautomower to 2024.9.1 ( #126315 )
2024-09-20 12:40:16 +02:00
Thomas55555
7a9da6dde1
Add additional mower to Husqvarna Autmower tests ( #126313 )
2024-09-20 12:01:07 +02:00
Thomas55555
ca59805907
Add sync clock button for Husqvarna Automower ( #125689 )
...
* Sync Clock
* optimize add entitites
* fix?
* test
* simplify command
* 1 generic entity
* docstrings
* tweaks
* tests
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* suggestions from review
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-17 16:12:09 +02:00
Thomas55555
fccbaa0fbc
Add calendar to Husqvarna Automower ( #120775 )
...
* Add Calendar
* update
* change timezone for tests
* fix requirements
* bump aioautomower to 2024.6.3b0
* bump aioautomower to 2024.6.4b0
* fix req
* align dates
* adjust
* nnbw
* better
* improvements
* req
* update requirements
* tests
* tweaks
* shift functions to library
* tests
* bump to aioautomower==2024.9.0b1
* tests
* remove ZoneInfo wrapper
* use timetzone from start_date object
* Update requirements_all.txt
* Fix names in ProgramEvent
2024-09-15 22:07:40 -07:00
Thomas55555
ed907da190
Bump aioautomower to 2024.9.0 ( #125647 )
...
bump aioautomower to 2024.9.0
2024-09-10 15:38:18 +02:00
Thomas55555
3b1b600606
Bump aioautomower to 2024.8.0 ( #123826 )
2024-08-14 13:47:49 +02:00
Joost Lekkerkerker
e8d7eb05ae
Delete unused snapshots ( #123656 )
...
* Delete unused snapshots
* Delete unused snapshots
2024-08-12 13:28:09 +02:00
Thomas55555
cc1a6d60c0
Add override for work areas in Husqvarna Automower ( #120427 )
...
Co-authored-by: Robert Resch <robert@resch.dev>
2024-07-31 19:28:46 +02:00
Thomas55555
0d678120e4
Bump aioautomower to 2024.7.3 ( #121983 )
...
* Bump aioautomower to 2024.7.0
* tests
* Bump to 2024.7.1
* bump to 2024.7.2
* use timezone Europe/Berlin
* bump to 2024.7.3
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-07-31 08:28:39 +02:00
Joost Lekkerkerker
f8ba4d41ba
Add support for adding model_id in device info ( #121989 )
2024-07-16 15:12:25 +02:00
Thomas55555
1b42b32ac1
Fix work area sensor in Husqvarna Automower ( #121228 )
2024-07-05 09:41:21 +02:00
Erik Montnemery
9bbeb5d608
Add primary_config_entry attribute to device registry entries ( #119959 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Robert Resch <robert@resch.dev>
2024-06-26 12:26:24 +02:00
Thomas55555
0a781b8fa2
Add button platform to Husqvarna Automower ( #119856 )
...
* Add button platform to Husqvarna Automower
* test coverage
* adapt to library changes
* Address review
2024-06-18 21:24:09 +02:00
Paulus Schoutsen
eb89ce47ea
Inline primary integration ( #119860 )
2024-06-18 08:08:08 +02:00
Paulus Schoutsen
836abe68c7
Track primary integration ( #119741 )
...
* Track primary integration
* Update snapshots
* More snapshots updated
* Uno mas
* Update snapshot
2024-06-16 13:26:06 -04:00
Thomas55555
c2e31e9846
Add work area sensor for Husqvarna Automower ( #119704 )
...
* Add work area sensor to Husqvarna Automower
* fix exist_fn
2024-06-14 21:34:47 +02:00
Thomas55555
b4a77f8341
Bump aioautomower to 2024.6.0 ( #119625 )
2024-06-13 19:58:04 +02:00
Thomas55555
13385912d1
Refactor Husqvarna Automower ( #117938 )
2024-05-24 10:54:19 +02:00
Thomas55555
eeeb5b2725
Add switch for stay out zones in Husqvarna Automower ( #117809 )
...
Co-authored-by: Robert Resch <robert@resch.dev>
2024-05-22 18:51:21 +02:00
Thomas55555
bb758bcb26
Bump aioautomower to 2024.5.1 ( #117815 )
2024-05-21 09:43:36 +02:00
Thomas55555
9e5bb92851
Fix flakey test in Husqvarna Automower ( #116981 )
2024-05-07 12:08:52 +02:00
Thomas55555
8e66e5bb11
Bump aioautomower to 2024.5.0 ( #116942 )
2024-05-06 17:59:34 -05:00
Thomas55555
f001e8524a
Add Workarea cutting height to Husqvarna Automower ( #116115 )
...
* add work_area cutting_height
* add
* add default work_area
* ruff/mypy
* better names
* fit to api bump
* tweaks
* more tweaks
* layout
* address review
* change entity name
* tweak test
* cleanup entities
* fix for mowers with no workareas
* assure not other entities get deleted
* sort & remove one callback
* remove typing callbacks
* rename entity to entity_entry
2024-04-29 21:10:45 +02:00
Thomas55555
a8b41c90c5
Bump aioautomower to 2024.4.4 ( #116185 )
2024-04-25 14:36:00 -05:00
Thomas55555
f1fa33483e
Bump aioautomower to 2024.4.3 ( #114500 )
2024-04-23 22:23:44 +02:00
Thomas55555
b8918d7d17
Add number platform to Husqvarna Automower ( #115125 )
...
* Add number platform to Husqvarna Automower
* use fixture to enable by default
* replace state test with snapshot test
* make property in entity description
* send value as integer
* give the exists functions something to do
2024-04-23 14:18:49 +02:00
Thomas55555
5eb4cf6a05
Add error sensor for Husqvarna Automower ( #113165 )
...
* Add error sensor for Husqvarna Automower
* Apply suggestions from code review
Co-authored-by: Jan-Philipp Benecke <github@bnck.me>
* address review
* Add restricted reason sensor
* ruff
* pin options
---------
Co-authored-by: Jan-Philipp Benecke <github@bnck.me>
2024-03-31 20:06:30 +02:00
Thomas55555
b71cbeff51
Bump aioautomower to 2024.3.4 ( #114127 )
...
* Bump aioautomower to 2024.3.4
* Update homeassistant/components/husqvarna_automower/sensor.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* adjust imports
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-03-25 16:11:12 +01:00
Thomas55555
80c8b94021
Add diagnostics to Husqvarna Automower ( #111857 )
2024-03-21 10:06:40 +01:00
Erik Montnemery
426f73b1f4
Add State.last_reported ( #113511 )
...
* Add State.last_reported
* Update tests
* Update test snapshots
* Call state_reported listeners when firing state_changed event
* Add tests
2024-03-20 21:05:07 +01:00
Thomas55555
ea443af557
Add device_tracker platform for husqvarna_automower ( #111403 )
...
* Add device_tracker platform for husqvarna_automower
* ruff
* Add snapshot test
* State test
* Fix description
* ruff
* Optimize some docstrings
* Update homeassistant/components/husqvarna_automower/device_tracker.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Adress review
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-03-19 15:46:35 +01:00
Thomas55555
3a8494cb88
Add binary sensor platform for Husqvarna Automower ( #113248 )
...
* Add binary sensor platform for Husqvarna Automower
* revert changes in sensor.py
* use == instead of is
* remove the parantheses
* Apply suggestions from code review
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Docstring
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-03-19 15:30:30 +01:00
Thomas55555
309f554336
Address late review on adding an error sensor to Husqvarna Automower ( #113242 )
2024-03-15 12:04:33 +01:00
Thomas55555
4f4391bd09
Add missing device info to Husqvarna Automower ( #113090 )
...
* Add missing DeviceInfo to Husqvarna Automower
* add a test
* Adress review
* Update homeassistant/components/husqvarna_automower/entity.py
* fix url
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-03-12 08:25:35 +01:00
Joost Lekkerkerker
d9f6e4be24
Add icon translations to Husqvarna automower ( #111727 )
...
* Add icon translations to Husqvarna automower
* fix
2024-03-10 21:55:31 +01:00
Thomas55555
85be94e0a9
Add switch platform for husqvarna_automower ( #110139 )
...
* Add switch platform for husqvarna_automower
* Use RestrictedReasons const
* Typing
* Add snapshot testing
* Invert switch
* Test sucessfull servie calls
* Assert client mock calls
* Use getattr
* Update snapshot
* Add available property
* Add a new base class for control entities
* Make switch unavailabe if mower in error state
* Sort platforms
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-02-22 12:34:24 +01:00
Thomas55555
6e91776d65
Add sensor platform for husqvarna_automower ( #110410 )
...
* Add sensor platform for husqvarna_automower
* Adress review comments
* Try to fix test
* Improve sensors
* Address review
* Adapt some values
* Add test
* Add test for cutting blade usage time
* Import TEST_MOWER_ID
* Use a parenthesis around the lambda and indent it so it's easier to distinguish the entity description parameters from the lambda
2024-02-22 09:26:38 +01:00