fix bool truthy

ecowitt_support
SchiZzA 2026-05-27 21:49:39 +02:00
parent 047bd5f6c7
commit e843e39ae4
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -103,11 +103,11 @@ class ConfigOptionsFlowHandler(OptionsFlow):
WINDY_STATION_PW, WINDY_STATION_PW,
default=self.windy_data.get(WINDY_STATION_PW, ""), default=self.windy_data.get(WINDY_STATION_PW, ""),
): str, ): str,
vol.Optional(WINDY_ENABLED, default=self.windy_data[WINDY_ENABLED]): bool or False, vol.Optional(WINDY_ENABLED, default=self.windy_data[WINDY_ENABLED]): bool,
vol.Optional( vol.Optional(
WINDY_LOGGER_ENABLED, WINDY_LOGGER_ENABLED,
default=self.windy_data[WINDY_LOGGER_ENABLED], default=self.windy_data[WINDY_LOGGER_ENABLED],
): bool or False, ): bool,
} }
self.pocasi_cz = { self.pocasi_cz = {