Skip to content

Commit

Permalink
Remove PW_ROUND constant
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneofghosts authored Feb 4, 2024
1 parent 5fbf411 commit f9993d8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions custom_components/pirateweather/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
PW_PLATFORMS,
PW_PLATFORM,
PW_PREVPLATFORM,
PW_ROUND,
)

ATTRIBUTION = "Powered by Pirate Weather"
Expand Down Expand Up @@ -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"]
),
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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"]),
}
),
)
Expand Down

0 comments on commit f9993d8

Please sign in to comment.