Disable polling in buienradar weather entity (#98443)
This commit is contained in:
parent
a87878f723
commit
35b914af97
3 changed files with 41 additions and 57 deletions
|
@ -753,9 +753,9 @@ class BrSensor(SensorEntity):
|
|||
self._timeframe = None
|
||||
|
||||
@callback
|
||||
def data_updated(self, data):
|
||||
def data_updated(self, data: BrData):
|
||||
"""Update data."""
|
||||
if self.hass and self._load_data(data):
|
||||
if self.hass and self._load_data(data.data):
|
||||
self.async_write_ha_state()
|
||||
|
||||
@callback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue