Commit Graph

70 Commits (70d4ee93f52094b16bbdcba1c68a2f234e214ca0)

Author SHA1 Message Date
Thomas55555 f53411b95a
Bump aioautomower to 2024.9.3 (#126769)
* Bump aioautomower to 2024.9.3

* tests
2024-09-25 20:28:22 +02:00
epenet a3c2a7e1e0
Remove redundant source_type property from TrackerEntities (#126717) 2024-09-25 08:56:42 +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
Thomas55555 c9351fdeeb
Simplify cleanup in Husqvarna Automower (#126666)
Simplify cleanup in Hsuqvarna Automower
2024-09-24 18:54:06 +02:00
Thomas55555 d81e836b37
Bump aioautomower to 2024.9.2 (#126659) 2024-09-24 18:18:02 +02:00
Thomas55555 02b3da8f80
Automatic device cleanup for Husqvarna Automower (#126384)
* Automatic device cleanup for Husqvarna Automower

* fix copy&paste mistake

* typing

* overwrite type in coordinator
2024-09-22 16:06:01 +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 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
Michael Arthur 54188b4128
Add returning activity to Husqvarna lawn mower (#124511)
* add returning activity to husqvarna lawn mower

* Update test, fix bug with comparison operator
2024-08-30 12:59:13 +02:00
Erik Montnemery cffa8b4feb
Update icons.json to new service schema part 2 (#124769) 2024-08-28 13:47:41 +02:00
Thomas55555 9911aa4ede
Enable confirm error button in Husqvarna Automower by default (#123927) 2024-08-15 08:29:06 +02:00
Thomas55555 3b1b600606
Bump aioautomower to 2024.8.0 (#123826) 2024-08-14 13:47:49 +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
Thomas55555 ad02afe7be
Extend wrapper for sending commands to all platforms in Husqvarna Automower (#120255) 2024-07-05 10:02:38 +02:00
Thomas55555 1b42b32ac1
Fix work area sensor in Husqvarna Automower (#121228) 2024-07-05 09:41:21 +02:00
Thomas55555 6af9527310
Bump aioautomower to 2024.6.4 (#120875) 2024-07-01 01:12:33 +02:00
Thomas55555 aaef31958b
Bump aioautomower to 2024.6.3 (#120697) 2024-06-27 21:29:17 +02:00
Thomas55555 fe3027f7de
Adjust base entities in Husqvarna Automower (#120258)
* adjust base entities

* Adjust docstrings
2024-06-24 08:16:26 +02:00
Thomas55555 1bd95d3596
Add service for Husqvarna Automower (#117269) 2024-06-22 18:40:13 +02:00
Thomas55555 4aecd23f1d
Fix Husqvarna Automower schedule switch turning back on (#117692) 2024-06-21 15:27:39 +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
Thomas55555 dc553a81a1
Bump aioautomower to 2024.6.1 (#119871) 2024-06-18 07:50:05 +02: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
Cyr-ius 8d3e3faf02
Use runtime_data in Husqvarna Automower (#119309) 2024-06-10 20:46:29 +02:00
Thomas55555 78e5f9578c
Clean up Husqvarna Automower number platform (#118641)
Address late review and remove unneeded loop in Husqvarna Automower
2024-06-03 05:13:02 +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 b2996844be
Add reauth for missing token scope in Husqvarna Automower (#117098)
* Add repair for wrong token scope to Husqvarna Automower

* avoid new installations with missing scope

* tweaks

* just reauth

* texts

* Add link to correct account

* Update homeassistant/components/husqvarna_automower/strings.json

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

* Update homeassistant/components/husqvarna_automower/strings.json

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

* Update homeassistant/components/husqvarna_automower/strings.json

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

* Add comment

* directly assert mock_missing_scope_config_entry.state is loaded

* assert that a flow is started

* pass complete url to strings and simplify texts

* shorten long line

* address review

* simplify tests

* grammar

* remove obsolete fixture

* fix test

* Update tests/components/husqvarna_automower/test_init.py

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

* test if reauth flow has started

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-05-13 23:00:51 +02:00
Thomas55555 3fa2db84f0
Catch auth exception in husqvarna automower (#115365)
* Catch AuthException in Husqvarna Automower

* don't use getattr

* raise ConfigEntryAuthFailed
2024-05-09 16:56:26 +02:00
Thomas55555 8e66e5bb11
Bump aioautomower to 2024.5.0 (#116942) 2024-05-06 17:59:34 -05:00
Thomas55555 86637f7171
Address late review for Husqvarna Automower (#116536)
* Address late review for Husqvarna Automower

* fix wrong base entity
2024-05-02 10:05:45 +02: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 ccc2f6c5b5
Add strict typing to husqvarna automower (#115374) 2024-04-25 15:39:42 -05:00
Thomas55555 a8b41c90c5
Bump aioautomower to 2024.4.4 (#116185) 2024-04-25 14:36:00 -05:00
J. Nick Koston 0f60b404df
Fix husqvarna_automower typing (#116060) 2024-04-23 22:50:31 +02: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 017b2fe685
Change scan interval for Husqvarna Automower (#115225)
* Change scan interval for Husqvarna Automower

* Also use const
2024-04-08 20:22:09 +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
Marc Mueller efc54971d3
Update empty line formatting after module docstring (#114040) 2024-03-23 00:27:57 +01:00
Thomas55555 63221356f6
Add select platform to Husqvarna Automower (#113816)
* Add select platform to Husqvarna Automower

* docstring

* address review

* pin headlight_modes list

* Apply suggestions from code review

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

* Apply review

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-03-21 17:07:09 +01:00
Thomas55555 80c8b94021
Add diagnostics to Husqvarna Automower (#111857) 2024-03-21 10:06:40 +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