浏览代码

alias attr parsing: added note regarding support for strings

Fabian Peter Hammerle 3 年之前
父节点
当前提交
41a67b20c6
共有 1 个文件被更改,包括 1 次插入0 次删除
  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(