diff --git a/homeassistant/components/edl21/sensor.py b/homeassistant/components/edl21/sensor.py index c2436c15057..f3152ce8230 100644 --- a/homeassistant/components/edl21/sensor.py +++ b/homeassistant/components/edl21/sensor.py @@ -340,7 +340,7 @@ class EDL21: ) else: entity_description = SENSORS.get(obis) - if entity_description and entity_description.name: + if entity_description: # self._name is only used for backwards YAML compatibility # This needs to be cleaned up when YAML support is removed device_name = self._name or DEFAULT_DEVICE_NAME