Only postfix image name for container (#55248)

This commit is contained in:
Joakim Sørensen 2021-08-26 10:54:42 +02:00 committed by GitHub
parent 56246056ce
commit 03d3bbfba1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 1 deletions

View file

@ -87,7 +87,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
source = HaVersionSource.CONTAINER
if (
source in (HaVersionSource.SUPERVISOR, HaVersionSource.CONTAINER)
source == HaVersionSource.CONTAINER
and image is not None
and image != DEFAULT_IMAGE
):