Skip to content

Remove discovered MQTT alarm_control_panel device when discovery topic is cleared.#16825

Merged
balloob merged 1 commit intohome-assistant:devfrom
emontnemery:mqtt_discovery_remove_alarm
Sep 25, 2018
Merged

Remove discovered MQTT alarm_control_panel device when discovery topic is cleared.#16825
balloob merged 1 commit intohome-assistant:devfrom
emontnemery:mqtt_discovery_remove_alarm

Conversation

@emontnemery
Copy link
Copy Markdown
Contributor

Description:

Support removal of previously discovered MQTT alarm_control_panel when a (retained) discovery payload is cleared.

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox.

state = hass.states.get('alarm_control_panel.beer')
assert state is not None
assert state.name == 'Beer'
async_fire_mqtt_message(hass, 'homeassistant/alarm_control_panel/bla/config',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (81 > 79 characters)

' "status_topic": "test_topic",'
' "command_topic": "test_topic" }'
)
async_fire_mqtt_message(hass, 'homeassistant/alarm_control_panel/bla/config',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (81 > 79 characters)

@balloob balloob merged commit 42790d3 into home-assistant:dev Sep 25, 2018
@ghost ghost removed the in progress label Sep 25, 2018
@emontnemery emontnemery deleted the mqtt_discovery_remove_alarm branch September 27, 2018 17:34
@balloob balloob mentioned this pull request Oct 12, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants