Skip to content

Commit

Permalink
fix: esphome parsing broken because of bad copy/paste
Browse files Browse the repository at this point in the history
  • Loading branch information
kpetremann committed Jun 30, 2023
1 parent 072a788 commit 1e0240c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mqtt_exporter/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def _is_esphome_topic(topic):
return False


def _is_esphome_topic(topic):
def _is_hubitat_topic(topic):
for prefix in settings.HUBITAT_TOPIC_PREFIXES:
if prefix and topic.startswith(prefix):
return True
Expand All @@ -297,7 +297,7 @@ def _parse_message(raw_topic, raw_payload):

if raw_topic.startswith(settings.ZWAVE_TOPIC_PREFIX):
topic, payload = _normalize_zwave2mqtt_format(raw_topic, payload)
elif _is_esphome_topic(raw_topic):
elif _is_hubitat_topic(raw_topic):
topic, payload = _normalize_hubitat_format(raw_topic, payload)
elif _is_esphome_topic(raw_topic):
topic, payload = _normalize_esphome_format(raw_topic, payload)
Expand Down

0 comments on commit 1e0240c

Please sign in to comment.