mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 13:00:11 +00:00
UniFi - refactor entity management (#34367)
* Move removal of sensor entities into a base class * Fix martins comments on sensors * Reflect sensor changes on device_tracker platform * Reflect sensor changes on switch platform * Improve layering * Make sure to clean up entity and device registry when removing entities * Fix martins comments
This commit is contained in:
@@ -207,7 +207,7 @@ async def test_reset_after_successful_setup(hass):
|
||||
"""Calling reset when the entry has been setup."""
|
||||
controller = await setup_unifi_integration(hass)
|
||||
|
||||
assert len(controller.listeners) == 9
|
||||
assert len(controller.listeners) == 6
|
||||
|
||||
result = await controller.async_reset()
|
||||
await hass.async_block_till_done()
|
||||
|
||||
Reference in New Issue
Block a user