Skip to content

Commit

Permalink
rmeove not yet integrated validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lhw committed Jun 5, 2024
1 parent 3d60ff3 commit 9898558
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions custom_components/cloudweatherproxy/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ class CloudWeatherProxyConfigFlow(ConfigFlow, domain=DOMAIN):
VERSION = 1

async def validate_input(hself, ass: HomeAssistant, data: dict[str, Any]) -> dict[str, Any]:
if not data[CONF_DNS_SERVERS].split(",") > 0:
raise InvalidInput()
return {}

async def async_step_user(
Expand Down
5 changes: 0 additions & 5 deletions custom_components/cloudweatherproxy/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@
"step": {
"user": {
"title": "Select desired proxy options",
"description": "Select the services to proxy and which DNS servers to query.",
"data": {
"weatherunderground_proxy": "Proxy Weather Underground",
"weathercloud_proxy": "Proxy Weathercloud",
"dns_servers": "DNS Servers"
}
}
},
"abort": {
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]",
"invalid_input": "[%key:common::config_flow::abort::invalid_input%]"
}
}
}
2 changes: 1 addition & 1 deletion custom_components/cloudweatherproxy/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class WundergroundReceiver(HomeAssistantView):
"""Wunderground receiver."""

name = f"api:${DOMAIN}:wunderground"
url = "/weatherstation/updateweatherstation.php"
url = "/wunderground/weatherstation/updateweatherstation.php"

def __init__(self, listener: CloudWeatherListener) -> None:
"""Initialize the Wunderground receiver."""
Expand Down

0 comments on commit 9898558

Please sign in to comment.