Skip to content

Commit

Permalink
Fix UniFi block client switches on 2022.11.2 (#81884)
Browse files Browse the repository at this point in the history
fixes undefined
  • Loading branch information
Kane610 committed Nov 15, 2022
1 parent d88b2bf commit f9ebbb9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions homeassistant/components/unifi/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,6 @@ def async_signalling_callback(self, event: ItemEvent, obj_id: str) -> None:
self.hass.async_create_task(self.remove_item({self._obj_id}))
return

client = self.controller.api.clients[self._obj_id]
self._attr_is_on = not client.blocked
self._attr_available = self.controller.available
self.async_write_ha_state()

Expand Down

0 comments on commit f9ebbb9

Please sign in to comment.