Allow source sensor to be changed in threshold helper (#119157)

* Allow source sensor to be changed in threshold helper

* Make sure old device link is removed on entry change

* Add test case for changed association
This commit is contained in:
Joakim Plate 2024-06-11 06:41:29 +02:00 committed by GitHub
parent f02383e10d
commit 958a456275
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 79 additions and 4 deletions

View file

@ -129,6 +129,7 @@ async def test_options(hass: HomeAssistant) -> None:
result = await hass.config_entries.options.async_configure(
result["flow_id"],
user_input={
"entity_id": input_sensor,
"hysteresis": 0.0,
"upper": 20.0,
},