Skip to content

Commit

Permalink
Fix for HA 2023.8 and up
Browse files Browse the repository at this point in the history
  • Loading branch information
hmmbob authored and ThomDietrich committed Aug 3, 2023
1 parent 000b4b0 commit 59cd5ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miflora-mqtt-daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def on_publish(client, userdata, mid):
for [sensor, params] in parameters.items():
discovery_topic = 'homeassistant/sensor/{}/{}/config'.format(flora_name.lower(), sensor)
payload = OrderedDict()
payload['name'] = "{} {}".format(flora_name, sensor.title())
payload['name'] = "{}".format(sensor.title())
payload['unique_id'] = "{}-{}".format(flora['mac'].lower().replace(":", ""), sensor)
payload['unit_of_measurement'] = params['unit']
if 'device_class' in params:
Expand Down

0 comments on commit 59cd5ab

Please sign in to comment.