mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Disable polling on energy sensors (#93651)
These sensors do not implement async_update so no polling is needed
This commit is contained in:
parent
5feceee588
commit
460d04fc07
@ -226,6 +226,8 @@ class EnergyCostSensor(SensorEntity):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
_attr_entity_registry_visible_default = False
|
_attr_entity_registry_visible_default = False
|
||||||
|
_attr_should_poll = False
|
||||||
|
|
||||||
_wrong_state_class_reported = False
|
_wrong_state_class_reported = False
|
||||||
_wrong_unit_reported = False
|
_wrong_unit_reported = False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user