-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
Deprecate implicit state_topic for MQTT discovery #22998
Deprecate implicit state_topic for MQTT discovery #22998
Conversation
Hey there @home-assistant/core, mind taking a look at this pull request as its been labeled with a integration ( |
Codecov Report
@@ Coverage Diff @@
## dev #22998 +/- ##
==========================================
+ Coverage 93.95% 93.98% +0.03%
==========================================
Files 448 449 +1
Lines 36750 36763 +13
==========================================
+ Hits 34529 34553 +24
+ Misses 2221 2210 -11
Continue to review full report at Codecov.
|
Breaking Change:
MQTT discovery will not longer implicitly set
state_topic
except formqtt.alarm_control_panel
,mqtt.binary_sensor
andmqtt.sensor
.Description:
MQTT discovery implicitly sets
state_topic
, this is not documented, not covered by any tests and breaks implicit optimistic mode.This PR:
state_topic
for components where astate_topic
is not required, i.e. where implicit optimistic mode is possible.state_topic
is implicitly setChecklist:
tox
. Your PR cannot be merged unless tests passIf the code does not interact with devices: