Set should_poll property for DSMR integration (#42108)

This commit is contained in:
Rob Bierbooms
2020-10-20 12:14:09 +02:00
committed by GitHub
parent 1363fbb02a
commit be431ce12a

View File

@@ -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."""