Skip to content

Commit

Permalink
Remove auto as an allowed unit (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneofghosts authored Jan 8, 2025
1 parent 0db2be6 commit 47da308
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/pirateweather/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ class ConditionPicture(NamedTuple):
"zh-tw",
]

ALLOWED_UNITS = ["auto", "si", "us", "ca", "uk", "uk2"]
ALLOWED_UNITS = ["si", "us", "ca", "uk", "uk2"]

ALERTS_ATTRS = ["time", "description", "expires", "severity", "uri", "regions", "title"]

Expand Down
2 changes: 1 addition & 1 deletion custom_components/pirateweather/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
vol.Optional(PW_PLATFORM): cv.string,
vol.Optional(PW_PREVPLATFORM): cv.string,
vol.Optional(CONF_MODE, default="hourly"): vol.In(FORECAST_MODES),
vol.Optional(CONF_UNITS): vol.In(["auto", "si", "us", "ca", "uk", "uk2"]),
vol.Optional(CONF_UNITS): vol.In(["si", "us", "ca", "uk", "uk2"]),
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
vol.Optional(CONF_SCAN_INTERVAL, default=DEFAULT_SCAN_INTERVAL): cv.time_period,
}
Expand Down

0 comments on commit 47da308

Please sign in to comment.