mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Use DOMAIN constant in command_line (#101269)
This commit is contained in:
parent
9eaf326c0e
commit
f72f95549c
@ -171,8 +171,8 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
|
|
||||||
async def _reload_config(call: Event | ServiceCall) -> None:
|
async def _reload_config(call: Event | ServiceCall) -> None:
|
||||||
"""Reload Command Line."""
|
"""Reload Command Line."""
|
||||||
reload_config = await async_integration_yaml_config(hass, "command_line")
|
reload_config = await async_integration_yaml_config(hass, DOMAIN)
|
||||||
reset_platforms = async_get_platforms(hass, "command_line")
|
reset_platforms = async_get_platforms(hass, DOMAIN)
|
||||||
for reset_platform in reset_platforms:
|
for reset_platform in reset_platforms:
|
||||||
_LOGGER.debug("Reload resetting platform: %s", reset_platform.domain)
|
_LOGGER.debug("Reload resetting platform: %s", reset_platform.domain)
|
||||||
await reset_platform.async_reset()
|
await reset_platform.async_reset()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user