core/homeassistant/components/system_bridge
Aidan Timson 2599252600
Post System Bridge 4.x.x integration improvements (#112189)
* Dont remove api key during migration

* Fix return

* Fix test

* Make lambda more readable

* Move fixtures to init, move migration test to test_init.py

* Refactor config_entry data assignment

* Refactor system_bridge migration tests

* Fix type for debug message

* Fix type for debug message

* Remove duplicated unused code (rebase error)

* Refactor test_migration_minor_2_to_1 to test_migration_minor_future_to_2

* Fix version check in async_migrate_entry

* Update migration logic to handle future minor version

* Add ConfigEntryState assertion in test_init.py

* Change condition to minor_version < 2

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

* Refactor system bridge migration tests

* Remove minor downgrade code

* Update tests/components/system_bridge/test_init.py

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

* Update tests/components/system_bridge/test_init.py

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

* Apply suggestions from code review

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

* Move dataclass to store requested data to data.py

* Use dataclass in config flow

* Move media player and sensor onto data.py dataclass

* Move data and handler inside validate

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-03-06 10:47:21 +01:00
..
__init__.py Post System Bridge 4.x.x integration improvements (#112189) 2024-03-06 10:47:21 +01:00
binary_sensor.py
config_flow.py Post System Bridge 4.x.x integration improvements (#112189) 2024-03-06 10:47:21 +01:00
const.py
coordinator.py Post System Bridge 4.x.x integration improvements (#112189) 2024-03-06 10:47:21 +01:00
data.py Post System Bridge 4.x.x integration improvements (#112189) 2024-03-06 10:47:21 +01:00
entity.py
manifest.json Update systembridgeconnector to 4.0.2 (#112174) 2024-03-04 14:16:22 +02:00
media_player.py Post System Bridge 4.x.x integration improvements (#112189) 2024-03-06 10:47:21 +01:00
media_source.py
notify.py
sensor.py Post System Bridge 4.x.x integration improvements (#112189) 2024-03-06 10:47:21 +01:00
services.yaml
strings.json
update.py