mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Remove unnecessary condition from edl21 sensor (#94493)
This commit is contained in:
parent
d51982f12f
commit
af6dac8584
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user