Skip to content

Commit 278f322

Browse files
authored
Allow KNX UI BinarySensors to disable state synchronisation (home-assistant#155054)
1 parent 8c36090 commit 278f322

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

homeassistant/components/knx/storage/entity_store_schema.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@
109109
min=0, max=600, step=0.1, unit_of_measurement="s"
110110
)
111111
),
112-
vol.Required(CONF_SYNC_STATE, default=True): SyncStateSelector(),
112+
vol.Required(CONF_SYNC_STATE, default=True): SyncStateSelector(
113+
allow_false=True
114+
),
113115
},
114116
)
115117

tests/components/knx/snapshots/test_websocket.ambr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
'type': 'ha_selector',
7979
}),
8080
dict({
81-
'allow_false': False,
81+
'allow_false': True,
8282
'default': True,
8383
'name': 'sync_state',
8484
'required': True,

0 commit comments

Comments
 (0)