diff --git a/custom_components/deebot/config_flow.py b/custom_components/deebot/config_flow.py index 385714b..12981d2 100644 --- a/custom_components/deebot/config_flow.py +++ b/custom_components/deebot/config_flow.py @@ -247,7 +247,7 @@ async def _retrieve_devices( deebot_config = create_rest_config( aiohttp_client.async_get_clientsession(hass, verify_ssl=verify_ssl), device_id=DEEBOT_API_DEVICEID, - country=domain_config[CONF_COUNTRY].upper(), + alpha_2_country=domain_config[CONF_COUNTRY].upper(), ) authenticator = Authenticator( diff --git a/custom_components/deebot/controller.py b/custom_components/deebot/controller.py index 7330b86..c067d1d 100644 --- a/custom_components/deebot/controller.py +++ b/custom_components/deebot/controller.py @@ -58,7 +58,7 @@ def __init__(self, hass: HomeAssistant, config: Mapping[str, Any]): deebot_config = create_rest_config( aiohttp_client.async_get_clientsession(self._hass, verify_ssl=verify_ssl), device_id=device_id, - country=country, + alpha_2_country=country, ) self._authenticator = Authenticator( diff --git a/custom_components/deebot/manifest.json b/custom_components/deebot/manifest.json index f0b3803..8533c7d 100644 --- a/custom_components/deebot/manifest.json +++ b/custom_components/deebot/manifest.json @@ -14,7 +14,7 @@ "deebot_client" ], "requirements": [ - "deebot-client==5.0.0", + "deebot-client==5.1.0", "numpy>=1.23.2" ], "version": "v0.0.0" diff --git a/custom_components/deebot/translations/en.json b/custom_components/deebot/translations/en.json index 2616a91..66fe894 100644 --- a/custom_components/deebot/translations/en.json +++ b/custom_components/deebot/translations/en.json @@ -179,7 +179,7 @@ }, "issues": { "deprecated_integration_issue": { - "description": "I migrated the custom component `Deebot 4 Home Assistant` to the core and merged it with the existing `Ecovacs` integration.\n\nThe custom component is no longer needed and will be archived in the future.\n\nEverything was migrated except:\n- The events `cleaning_job` and `custom_command`.\n- The last cleaning and stats type sensors\n- Deprecated services\n\nMigration steps:\n1: Remove all `Deebot 4 Home Assistant` config entries\n2: Uninstall `Deebot 4 Home Assistant` via HACS\n3: Setup the [Ecovacs integration]({docs_url}) by clicking [here]({config_url})", + "description": "I migrated the custom component `Deebot 4 Home Assistant` to the core and merged it with the existing `Ecovacs` integration.\n\nThe custom component is no longer needed and will be archived in the future.\n\nEverything was migrated except:\n- The events `cleaning_job` and `custom_command`.\n- The last cleaning and stats type sensors\n- Deprecated services\n\nMigration steps:\n1: Remove all `Deebot 4 Home Assistant` config entries\n2: Uninstall `Deebot 4 Home Assistant` via HACS\n3: Restart Home Assistant\n4: Setup the [Ecovacs integration]({docs_url}) by clicking [here]({config_url})", "title": "Time to migrate!" }, "deprecated_service_refresh": { diff --git a/requirements.txt b/requirements.txt index 7eb3e6a..a8f8db6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ # if code from specific branch is needed #git+https://github.com/DeebotUniverse/client.py@dev#deebot-client==4.2.0dev0 -deebot-client==5.0.0 +deebot-client==5.1.0 homeassistant>=2024.1.0b0 mypy==1.8.0