Fix implicit-return in time_date (#122929)
This commit is contained in:
parent
5e1cca1c58
commit
e64e3c2778
1 changed files with 1 additions and 1 deletions
|
@ -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]]
|
||||
|
|
Loading…
Add table
Reference in a new issue