Remove unnecessary condition from edl21 sensor (#94493)

This commit is contained in:
Erik Montnemery 2023-06-12 21:48:49 +02:00 committed by GitHub
parent d51982f12f
commit af6dac8584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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