Disable polling in buienradar weather entity (#98443)

This commit is contained in:
Erik Montnemery 2023-08-15 13:28:43 +02:00 committed by GitHub
parent a87878f723
commit 35b914af97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 57 deletions

View file

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