Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow use templated topic #14

Merged
merged 25 commits into from Aug 17, 2021
Merged

feat: allow use templated topic #14

merged 25 commits into from Aug 17, 2021

Conversation

IATkachenko
Copy link
Owner

@IATkachenko IATkachenko commented Aug 17, 2021

Now we may use %%%device%%% macro for integration to get device name from different parts of MQTT topic.

Old root_topic configuration option will be replaced by old_root_topic_value/%%%device%%% template.

Have no breaking changes, but have a lot of changes in code, so it should be v2.0.0 release.
Fixes #9, #8

It is a property by meaning, that should be generated from config.
…function

It is not related to subscription to root topic
This constant contain macro for getting position from topic
to avoid "variable is not used" PyCharm warning
and add method for getting sensor by it's name
Model is MQTT to point out that it is MQTT integration.
@github-actions
Copy link

github-actions bot commented Aug 17, 2021

🎉 HACS repository validator action summary 🎉
✅ The repository is not archived
✅ manifest.json file exist
✅ All required keys are present in manifest.json
✅ hacs.json has the 'name' key set
✅ The repository has a description
✅ sleep_as_android is added to https://github.com/home-assistant/brands NICE!
✅ The repository has topics
✅ The repository has issues enabled
✅ This day ends with an 'y' (Tuesday)
✅ README.md exists
✅ HACS load check

@IATkachenko IATkachenko linked an issue Aug 17, 2021 that may be closed by this pull request
@IATkachenko IATkachenko merged commit 550aa14 into main Aug 17, 2021
@IATkachenko IATkachenko deleted the dev branch August 18, 2021 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Device, nor entity created in HA Topic text too long
1 participant