Shutdown harmony connection on stop (#49335)
This commit is contained in:
parent
f8a02c2762
commit
e06bb3b5e7
6 changed files with 42 additions and 17 deletions
|
@ -14,7 +14,7 @@ from homeassistant.components.remote import (
|
|||
from homeassistant.const import CONF_HOST, CONF_NAME
|
||||
from homeassistant.core import callback
|
||||
|
||||
from .const import DOMAIN, PREVIOUS_ACTIVE_ACTIVITY, UNIQUE_ID
|
||||
from .const import DOMAIN, HARMONY_DATA, PREVIOUS_ACTIVE_ACTIVITY, UNIQUE_ID
|
||||
from .util import (
|
||||
find_best_name_for_remote,
|
||||
find_unique_id_for_remote,
|
||||
|
@ -180,7 +180,7 @@ class OptionsFlowHandler(config_entries.OptionsFlow):
|
|||
if user_input is not None:
|
||||
return self.async_create_entry(title="", data=user_input)
|
||||
|
||||
remote = self.hass.data[DOMAIN][self.config_entry.entry_id]
|
||||
remote = self.hass.data[DOMAIN][self.config_entry.entry_id][HARMONY_DATA]
|
||||
|
||||
data_schema = vol.Schema(
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue