From 7a39c769f0b1681face96c4b5a33d44181f98fdd Mon Sep 17 00:00:00 2001 From: Julien Date: Mon, 21 Feb 2022 09:50:14 +0100 Subject: [PATCH] Fix typo in const.py (#66856) --- homeassistant/components/version/config_flow.py | 4 ++-- homeassistant/components/version/const.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/version/config_flow.py b/homeassistant/components/version/config_flow.py index f37fa1c3da2..292b194eea1 100644 --- a/homeassistant/components/version/config_flow.py +++ b/homeassistant/components/version/config_flow.py @@ -26,7 +26,7 @@ from .const import ( DEFAULT_SOURCE, DOMAIN, POSTFIX_CONTAINER_NAME, - SOURCE_DOKCER, + SOURCE_DOCKER, SOURCE_HASSIO, STEP_USER, STEP_VERSION_SOURCE, @@ -171,7 +171,7 @@ def _convert_imported_configuration(config: dict[str, Any]) -> Any: if source == SOURCE_HASSIO: data[CONF_SOURCE] = "supervisor" data[CONF_VERSION_SOURCE] = VERSION_SOURCE_VERSIONS - elif source == SOURCE_DOKCER: + elif source == SOURCE_DOCKER: data[CONF_SOURCE] = "container" data[CONF_VERSION_SOURCE] = VERSION_SOURCE_DOCKER_HUB else: diff --git a/homeassistant/components/version/const.py b/homeassistant/components/version/const.py index 9ee556c6b7f..9f480c25cc5 100644 --- a/homeassistant/components/version/const.py +++ b/homeassistant/components/version/const.py @@ -30,7 +30,7 @@ ATTR_CHANNEL: Final = CONF_CHANNEL ATTR_VERSION_SOURCE: Final = CONF_VERSION_SOURCE ATTR_SOURCE: Final = CONF_SOURCE -SOURCE_DOKCER: Final = "docker" # Kept to not break existing configurations +SOURCE_DOCKER: Final = "docker" # Kept to not break existing configurations SOURCE_HASSIO: Final = "hassio" # Kept to not break existing configurations VERSION_SOURCE_DOCKER_HUB: Final = "Docker Hub"