From f9993d80e96ff59c0a77e064192e3b9a0c9dd533 Mon Sep 17 00:00:00 2001 From: Kev Date: Sun, 4 Feb 2024 12:33:47 -0500 Subject: [PATCH] Remove PW_ROUND constant --- custom_components/pirateweather/config_flow.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/custom_components/pirateweather/config_flow.py b/custom_components/pirateweather/config_flow.py index fa1bf8e..6e6befe 100644 --- a/custom_components/pirateweather/config_flow.py +++ b/custom_components/pirateweather/config_flow.py @@ -34,7 +34,6 @@ PW_PLATFORMS, PW_PLATFORM, PW_PREVPLATFORM, - PW_ROUND, ) ATTRIBUTION = "Powered by Pirate Weather" @@ -84,7 +83,6 @@ async def async_step_user(self, user_input=None): vol.Optional(CONF_MONITORED_CONDITIONS, default=[]): cv.multi_select( ALL_CONDITIONS ), - vol.Optional(PW_ROUND, default="No"): vol.In(["Yes", "No"]), vol.Optional(CONF_UNITS, default=DEFAULT_UNITS): vol.In( ["si", "us", "ca", "uk"] ), @@ -172,8 +170,6 @@ async def async_step_import(self, import_input=None): config[PW_PLATFORM] = None if PW_PREVPLATFORM not in config: config[PW_PREVPLATFORM] = None - if PW_ROUND not in config: - config[PW_ROUND] = "No" if CONF_SCAN_INTERVAL not in config: config[CONF_SCAN_INTERVAL] = DEFAULT_SCAN_INTERVAL return await self.async_step_user(config) @@ -282,13 +278,6 @@ async def async_step_init(self, user_input=None): self.config_entry.data.get(CONF_UNITS, DEFAULT_UNITS), ), ): vol.In(["si", "us", "ca", "uk"]), - vol.Optional( - PW_ROUND, - default=self.config_entry.options.get( - PW_ROUND, - self.config_entry.data.get(PW_ROUND, "No"), - ), - ): vol.In(["Yes", "No"]), } ), )