Disable polling on energy sensors (#93651)

These sensors do not implement async_update so no
polling is needed
This commit is contained in:
J. Nick Koston 2023-05-27 18:54:40 -05:00 committed by GitHub
parent 5feceee588
commit 460d04fc07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -226,6 +226,8 @@ class EnergyCostSensor(SensorEntity):
"""
_attr_entity_registry_visible_default = False
_attr_should_poll = False
_wrong_state_class_reported = False
_wrong_unit_reported = False