mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Set should_poll property for DSMR integration (#42108)
This commit is contained in:
parent
1363fbb02a
commit
be431ce12a
@ -278,6 +278,11 @@ class DSMREntity(Entity):
|
||||
"""Force update."""
|
||||
return True
|
||||
|
||||
@property
|
||||
def should_poll(self):
|
||||
"""Disable polling."""
|
||||
return False
|
||||
|
||||
@staticmethod
|
||||
def translate_tariff(value, dsmr_version):
|
||||
"""Convert 2/1 to normal/low depending on DSMR version."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user