mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-05 06:54:29 +02:00
Removed redundant async_schedule_update_ha_state from model
This commit is contained in:
parent
1294631f8a
commit
717fa2f6ae
1 changed files with 0 additions and 2 deletions
|
@ -72,8 +72,6 @@ def model_update_items(
|
||||||
def _register_entity(_sensors, _item_id, _uid, _uid_sensor):
|
def _register_entity(_sensors, _item_id, _uid, _uid_sensor):
|
||||||
_LOGGER.debug("Updating entity %s", _item_id)
|
_LOGGER.debug("Updating entity %s", _item_id)
|
||||||
if _item_id in _sensors:
|
if _item_id in _sensors:
|
||||||
if _sensors[_item_id].enabled:
|
|
||||||
_sensors[_item_id].async_schedule_update_ha_state()
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return dispatcher[_uid_sensor.func](
|
return dispatcher[_uid_sensor.func](
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue