mirror of https://github.com/home-assistant/core
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…
Reference in New Issue