Use hass.async_create_task rather than hass.loop.create_task in deconz (#64158)
This commit is contained in:
parent
c0b1d083b8
commit
43fe46c582
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue