Set should_poll property for DSMR integration (#42108)
This commit is contained in:
parent
1363fbb02a
commit
be431ce12a
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue