mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Use hass.async_create_task rather than hass.loop.create_task in deconz (#64158)
This commit is contained in:
parent
c0b1d083b8
commit
43fe46c582
@ -371,7 +371,7 @@ class UniFiDPIRestrictionSwitch(UniFiBase, SwitchEntity):
|
|||||||
Calculate and update entity state if it has changed.
|
Calculate and update entity state if it has changed.
|
||||||
"""
|
"""
|
||||||
if not self._item.dpiapp_ids:
|
if not self._item.dpiapp_ids:
|
||||||
self.hass.loop.create_task(self.remove_item({self.key}))
|
self.hass.async_create_task(self.remove_item({self.key}))
|
||||||
return
|
return
|
||||||
|
|
||||||
if self._known_app_ids != self._item.dpiapp_ids:
|
if self._known_app_ids != self._item.dpiapp_ids:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user