Skip to content

Commit

Permalink
Set should_poll property for DSMR integration (home-assistant#42108)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobBie1221 authored Oct 20, 2020
1 parent 1363fbb commit be431ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions homeassistant/components/dsmr/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,11 @@ def force_update(self):
"""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."""
Expand Down

0 comments on commit be431ce

Please sign in to comment.