52 files
This commit is contained in:
@@ -51,7 +51,7 @@ async def async_setup_entry(
|
||||
):
|
||||
"""Set up the sensor entities."""
|
||||
coordinator = entry.runtime_data.coordinator
|
||||
resources = entry.data.get(CONF_RESOURCES, [])
|
||||
resources = coordinator.config.get(CONF_RESOURCES, [])
|
||||
|
||||
sensors = [
|
||||
PackagesSensor(entry, SENSOR_TYPES[variable], coordinator)
|
||||
@@ -238,7 +238,7 @@ class ImagePathSensors(CoordinatorEntity, SensorEntity):
|
||||
|
||||
path = self.coordinator.data.get(
|
||||
ATTR_IMAGE_PATH,
|
||||
self._config.data.get(CONF_PATH),
|
||||
self.coordinator.config.get(CONF_PATH),
|
||||
)
|
||||
|
||||
if self.type == "usps_mail_image_system_path" and image:
|
||||
|
||||
Reference in New Issue
Block a user