Sfoglia il codice sorgente

alias attr parsing: added note regarding support for strings

Fabian Peter Hammerle 3 anni fa
parent
commit
41a67b20c6
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      intertechno_cc1101_mqtt/__init__.py

+ 1 - 0
intertechno_cc1101_mqtt/__init__.py

@@ -25,6 +25,7 @@ def _parse_topic(
             _LOGGER.warning("unknown alias %r; ignoring message", topic_split[1])
             return None, None
         try:
+            # accepting strings to support `{{ aliases_in_ansible_vault | to_nice_json }}`
             return int(alias_attrs["address"]), int(alias_attrs["button-index"])
         except KeyError:
             _LOGGER.error(