diff options
Diffstat (limited to 'scripts/esphomeapi.py')
-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()') |