mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
UniFi - use entity registry disabled_by to control available entities (#26141)
* Move ignoring logic to entity registry enabled default * Handle config to option import better * Properly enable and disable entity registry entries on changes from config entry options * Fix balloobs comments * Fix some tests * Fix tests * Simplify updating disable on entities * Simplify device tracker update function * Local entity disabled replaced on rebase * Only alter entities with changed options * Proper tracking of changed options * Back to straightforward updating of disabled
This commit is contained in:
@@ -42,12 +42,12 @@ async def test_controller_setup():
|
||||
{
|
||||
CONF_HOST: CONTROLLER_DATA[CONF_HOST],
|
||||
CONF_SITE_ID: "nice name",
|
||||
controller.CONF_BLOCK_CLIENT: [],
|
||||
controller.CONF_TRACK_CLIENTS: True,
|
||||
controller.CONF_TRACK_DEVICES: True,
|
||||
controller.CONF_TRACK_WIRED_CLIENTS: True,
|
||||
controller.CONF_DETECTION_TIME: 300,
|
||||
controller.CONF_SSID_FILTER: [],
|
||||
controller.CONF_BLOCK_CLIENT: ["mac"],
|
||||
controller.CONF_DONT_TRACK_CLIENTS: True,
|
||||
controller.CONF_DONT_TRACK_DEVICES: True,
|
||||
controller.CONF_DONT_TRACK_WIRED_CLIENTS: True,
|
||||
controller.CONF_DETECTION_TIME: 30,
|
||||
controller.CONF_SSID_FILTER: ["ssid"],
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user