diff --git a/custom_components/hacs/base.py b/custom_components/hacs/base.py index 21f599491b2..23efd41b91a 100644 --- a/custom_components/hacs/base.py +++ b/custom_components/hacs/base.py @@ -627,7 +627,7 @@ async def async_recreate_entities(self) -> None: """Recreate entities.""" if ( self.configuration == ConfigurationType.YAML - or self.core.ha_version < "2022.4.0.dev0" + or not self.core.ha_version >= "2022.4.0.dev0" or not self.configuration.experimental ): return diff --git a/custom_components/hacs/repositories/base.py b/custom_components/hacs/repositories/base.py index 7521f19611a..281fdc59ac4 100644 --- a/custom_components/hacs/repositories/base.py +++ b/custom_components/hacs/repositories/base.py @@ -1178,7 +1178,7 @@ async def async_remove_entity_device(self) -> None: """Remove the entity device.""" if ( self.hacs.configuration == ConfigurationType.YAML - or self.hacs.core.ha_version < "2022.4.0.dev0" + or not self.hacs.core.ha_version >= "2022.4.0.dev0" or not self.hacs.configuration.experimental ): return