diff --git a/config.yaml.example b/config.yaml.example index 9ef669b..5ad30b0 100644 --- a/config.yaml.example +++ b/config.yaml.example @@ -4,7 +4,7 @@ mqtt: password: password manager: - topic_subcription: + topic_subscription: update_all: topic: homeassistant/status payload: online diff --git a/workers_manager.py b/workers_manager.py index 98df8aa..f599c9e 100644 --- a/workers_manager.py +++ b/workers_manager.py @@ -63,7 +63,7 @@ class WorkersManager: )) if 'topic_subscription' in config: - for (callback_name, options) in config['topic_subcription'].items(): + for (callback_name, options) in config['topic_subscription'].items(): _LOGGER.debug("Subscribing to: %s with command: %s" % (options['topic'], callback_name)) self._mqtt_callbacks.append(( options['topic'],