12 Commits

Author SHA1 Message Date
Andre Lengwenus
d9726ab08c
Use snapshots for ConfigEntry migration tests (#136093)
* Add snapshots for migration

* Reduce fixtures specific to migration

* Explicitly test versions of migrated entries
2025-02-07 11:32:47 +01:00
Andre Lengwenus
344a03d9ce
Remove unused fixture from LCN tests (#133821) 2024-12-22 19:55:45 +01:00
Andre Lengwenus
c9aba288b4
Add switch entities for LCN key-locks and regulator-locks (#127731)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-10-29 20:08:30 +01:00
Andre Lengwenus
759fe54132
Fix transition config storage in LCN light and scene platform (#127847) 2024-10-25 16:25:41 +02:00
Andre Lengwenus
5685ba7f55
Make acknowledge requests from LCN modules optional (#125765)
* Add acknowledge flag to config_entry

* Add acknowledge option to lcn configuration

* Fix tests

* Bump pypck to 0.7.23

* Add entry fixture for config_entry version 1.1 to test migration

* Add data_description to strings.json

* Create versioned config_entry in tests
2024-09-14 09:21:15 +02:00
Andre Lengwenus
20639b0f02
Add tests for LCN climate and scene platform (#124466)
* Add tests for LCN climate and scene platform

* Add type hints

* Add snapshots for test_climate

* Add snapshots for test_scene

* Replace await_called assertion with snapshots

* Remove snapshots for simple status changes

* Test platform setup using snapshot_platform

* Fix type hints

* Patch homeassistant.components.lcn context instead of pypck module

* Fix side effects caused by patching PchkConnectionManager in lcn platform context
2024-09-06 17:56:46 +02:00
Andre Lengwenus
c276cfc371
Add custom panel for LCN configuration (#108664)
* Add LCN panel using lcn-frontend module

* Move panel from sidebar to integration configuration

* Change OptionFlow to reconfigure step

* Change OptionFlow to reconfigure step

* Remove deprecation warning

* Fix docstring

* Add tests for lcn websockets

* Remove deepcopy

* Bump lcn-frontend to 0.1.3

* Add tests for lcn websockets

* Remove websocket command lcn/hosts

* Websocket scan tests cover modules not stored in config_entry

* Add comment to mock of hass.http

* Add a decorater to ensure the config_entry exists and return it

* Use entry_id instead of host_id

* Bump lcn-frontend to 0.1.5

* Use auto_id for websocket client send_json

* Create issues on yaml import errors

* Remove low level key deprecation warnings

* Method renaming

* Change issue id in issue creation

* Update tests for issue creation
2024-08-21 11:33:47 +02:00
Andre Lengwenus
b7b8feda0f
Add tests for LCN sensor and binary_sensor platforms (#67263) 2022-06-28 21:59:19 -07:00
Andre Lengwenus
684f01f466
Add tests for LCN cover platform (#64832) 2022-02-25 10:22:48 +01:00
Andre Lengwenus
d5ec2fe842
Add tests for LCN light platform (#64741) 2022-01-23 07:45:22 -10:00
Andre Lengwenus
19e3c08c56
Add tests for LCN switch platform (#52590) 2022-01-22 10:41:25 -10:00
Paulus Schoutsen
31153ac155
Move fixtures part 1 (#58902) 2021-11-01 20:47:05 -07:00