Fix typo in const.py (#66856)

This commit is contained in:
Julien 2022-02-21 09:50:14 +01:00 committed by GitHub
parent 3b146d8e9b
commit 7a39c769f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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:

View file

@ -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"