mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 20:25:07 +02:00
Fix problem with restoring POE control (#30597)
This commit is contained in:
committed by
Paulus Schoutsen
parent
103d352b1f
commit
ff5f890e79
@@ -42,12 +42,15 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||||||
|
|
||||||
_, mac = entity.unique_id.split("-", 1)
|
_, mac = entity.unique_id.split("-", 1)
|
||||||
|
|
||||||
if mac in controller.api.clients or mac not in controller.api.clients_all:
|
if mac in controller.api.clients:
|
||||||
|
switches_off.append(entity.unique_id)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if mac in controller.api.clients_all:
|
||||||
client = controller.api.clients_all[mac]
|
client = controller.api.clients_all[mac]
|
||||||
controller.api.clients.process_raw([client.raw])
|
controller.api.clients.process_raw([client.raw])
|
||||||
switches_off.append(entity.unique_id)
|
switches_off.append(entity.unique_id)
|
||||||
|
continue
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def update_controller():
|
def update_controller():
|
||||||
|
Reference in New Issue
Block a user