Remove undo_listener
variable in AccuWeather integration (#52032)
This commit is contained in:
parent
01a26f1348
commit
2aed268fb7
6 changed files with 11 additions and 34 deletions
|
@ -28,7 +28,6 @@ from .const import (
|
|||
ATTR_UNIT_IMPERIAL,
|
||||
ATTR_UNIT_METRIC,
|
||||
ATTRIBUTION,
|
||||
COORDINATOR,
|
||||
DOMAIN,
|
||||
FORECAST_SENSOR_TYPES,
|
||||
MANUFACTURER,
|
||||
|
@ -46,9 +45,7 @@ async def async_setup_entry(
|
|||
"""Add AccuWeather entities from a config_entry."""
|
||||
name: str = entry.data[CONF_NAME]
|
||||
|
||||
coordinator: AccuWeatherDataUpdateCoordinator = hass.data[DOMAIN][entry.entry_id][
|
||||
COORDINATOR
|
||||
]
|
||||
coordinator: AccuWeatherDataUpdateCoordinator = hass.data[DOMAIN][entry.entry_id]
|
||||
|
||||
sensors: list[AccuWeatherSensor] = []
|
||||
for sensor in SENSOR_TYPES:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue