diff options
author | Dennis Eriksen <d@ennis.no> | 2023-04-03 16:05:15 +0200 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2023-04-03 16:05:15 +0200 |
commit | e4d9c31b40d3ea43358e73d4d26b89ee809497e7 (patch) | |
tree | 910713c73f8c977e0082a55b05c68fe78144e88b | |
parent | Use UTC! (diff) | |
download | energyscripts-e4d9c31b40d3ea43358e73d4d26b89ee809497e7.tar.gz |
Use Friendly name here
-rw-r--r-- | scripts/esphomeapi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/esphomeapi.py b/scripts/esphomeapi.py index 3fb1a47..e0cbc67 100644 --- a/scripts/esphomeapi.py +++ b/scripts/esphomeapi.py @@ -67,7 +67,7 @@ async def main(args): device_class = sensor['device_class'] if 'device_class' in sensor else '' log.info(sensor['name'] + ' ' + sensor['device_class'] + ' - ' + str(value) + str(unit)) - common.statein(sensor['name'], value, device_class, unit, verbose=True) + common.statein(device['friendly_name'], value, device_class, unit, verbose=True) async def on_connect() -> None: log.debug('function on_connect()') |