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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

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