aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2023-04-03 16:05:15 +0200
committerDennis Eriksen <d@ennis.no>2023-04-03 16:05:15 +0200
commite4d9c31b40d3ea43358e73d4d26b89ee809497e7 (patch)
tree910713c73f8c977e0082a55b05c68fe78144e88b
parentUse UTC! (diff)
downloadenergyscripts-e4d9c31b40d3ea43358e73d4d26b89ee809497e7.tar.gz
Use Friendly name here
-rw-r--r--scripts/esphomeapi.py2
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()')