core/tests/components/husqvarna_automower
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
..
fixtures Add Workarea cutting height to Husqvarna Automower (#116115) 2024-04-29 21:10:45 +02:00
snapshots Fix flakey test in Husqvarna Automower (#116981) 2024-05-07 12:08:52 +02:00
__init__.py Add empty line after module docstring (3) (#112750) 2024-03-08 20:38:34 +01:00
conftest.py Add reauth for missing token scope in Husqvarna Automower (#117098) 2024-05-13 23:00:51 +02:00
const.py Add empty line after module docstring (3) (#112750) 2024-03-08 20:38:34 +01:00
test_binary_sensor.py Use snapshot test helper in Husqvarna Automower (#116039) 2024-04-23 17:39:29 +02:00
test_config_flow.py Add reauth for missing token scope in Husqvarna Automower (#117098) 2024-05-13 23:00:51 +02:00
test_device_tracker.py Use snapshot test helper in Husqvarna Automower (#116039) 2024-04-23 17:39:29 +02:00
test_diagnostics.py Fix flakey test in Husqvarna Automower (#116981) 2024-05-07 12:08:52 +02:00
test_init.py Add reauth for missing token scope in Husqvarna Automower (#117098) 2024-05-13 23:00:51 +02:00
test_lawn_mower.py Bump aioautomower to 2024.5.0 (#116942) 2024-05-06 17:59:34 -05:00
test_number.py Bump aioautomower to 2024.5.0 (#116942) 2024-05-06 17:59:34 -05:00
test_select.py Bump aioautomower to 2024.5.0 (#116942) 2024-05-06 17:59:34 -05:00
test_sensor.py Bump aioautomower to 2024.4.3 (#114500) 2024-04-23 22:23:44 +02:00
test_switch.py Bump aioautomower to 2024.5.0 (#116942) 2024-05-06 17:59:34 -05:00