diff --git a/homeassistant/components/prezzibenzina/sensor.py b/homeassistant/components/prezzibenzina/sensor.py index c985f96e6c606..f45d9d846698a 100644 --- a/homeassistant/components/prezzibenzina/sensor.py +++ b/homeassistant/components/prezzibenzina/sensor.py @@ -42,7 +42,7 @@ ) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): +def setup_platform(hass, config, add_entities, discovery_info=None): """Set up the PrezziBenzina sensor platform.""" station = config[CONF_STATION] @@ -65,7 +65,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info= ) ) - async_add_entities(dev, True) + add_entities(dev, True) class PrezziBenzinaSensor(Entity): @@ -114,6 +114,6 @@ def device_state_attributes(self): } return attrs - async def async_update(self): + def update(self): """Get the latest data and updates the states.""" self._data = self._client.get_by_id(self._station)[self._index]