Use Utility Meter configured name as friendly name (#53051)

This commit is contained in:
René Klomp 2021-07-16 05:58:32 +02:00 committed by GitHub
parent 4075e83732
commit da7b292855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ async def async_setup(hass, config):
hass,
SENSOR_DOMAIN,
DOMAIN,
[{CONF_METER: meter, CONF_NAME: meter}],
[{CONF_METER: meter, CONF_NAME: conf.get(CONF_NAME, meter)}],
config,
)
)