Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump deebot_client to 5.1.0 #109360

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion homeassistant/components/ecovacs/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def _validate_input(
rest_config = create_rest_config(
aiohttp_client.async_get_clientsession(hass),
device_id=device_id,
country=country,
alpha_2_country=country,
override_rest_url=rest_url,
)

Expand Down Expand Up @@ -266,6 +266,10 @@ def create_repair(
# If not we will inform the user about the mismatch.
error = None
placeholders = None

# Convert the country to upper case as ISO 3166-1 alpha-2 country codes are upper case
user_input[CONF_COUNTRY] = user_input[CONF_COUNTRY].upper()

if len(user_input[CONF_COUNTRY]) != 2:
error = "invalid_country_length"
placeholders = {"countries_url": "https://www.iso.org/obp/ui/#search/code/"}
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/ecovacs/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, hass: HomeAssistant, config: Mapping[str, Any]) -> None:
create_rest_config(
aiohttp_client.async_get_clientsession(self._hass),
device_id=self._device_id,
country=country,
alpha_2_country=country,
override_rest_url=config.get(CONF_OVERRIDE_REST_URL),
),
config[CONF_USERNAME],
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/ecovacs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/ecovacs",
"iot_class": "cloud_push",
"loggers": ["sleekxmppfs", "sucks", "deebot_client"],
"requirements": ["py-sucks==0.9.8", "deebot-client==5.0.0"]
"requirements": ["py-sucks==0.9.8", "deebot-client==5.1.0"]
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ debugpy==1.8.0
# decora==0.6

# homeassistant.components.ecovacs
deebot-client==5.0.0
deebot-client==5.1.0

# homeassistant.components.ihc
# homeassistant.components.namecheapdns
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ dbus-fast==2.21.1
debugpy==1.8.0

# homeassistant.components.ecovacs
deebot-client==5.0.0
deebot-client==5.1.0

# homeassistant.components.ihc
# homeassistant.components.namecheapdns
Expand Down
1 change: 1 addition & 0 deletions tests/components/ecovacs/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ async def test_invalid_auth(
({}, 0),
({DOMAIN: IMPORT_DATA.copy()}, 1),
],
ids=["no_config", "import_config"],
)
async def test_async_setup_import(
hass: HomeAssistant,
Expand Down
Loading