Fix implicit-return in time_date (#122929)

This commit is contained in:
epenet 2024-07-31 15:00:53 +02:00 committed by GitHub
parent 5e1cca1c58
commit e64e3c2778
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,7 +48,7 @@ async def async_setup_platform(
"""Set up the Time and Date sensor."""
if hass.config.time_zone is None:
_LOGGER.error("Timezone is not set in Home Assistant configuration") # type: ignore[unreachable]
return False
return
async_add_entities(
[TimeDateSensor(variable) for variable in config[CONF_DISPLAY_OPTIONS]]