diff --git a/custom_components/divera/config_flow.py b/custom_components/divera/config_flow.py index ba38985..d48d8f9 100644 --- a/custom_components/divera/config_flow.py +++ b/custom_components/divera/config_flow.py @@ -31,6 +31,7 @@ DOMAIN, ERROR_AUTH, ERROR_CONNECTION, + LOGGER, ) from .divera import DiveraAuthError, DiveraClient, DiveraConnectionError @@ -217,7 +218,9 @@ async def async_step_api(self, user_input: dict[str, Any] | None = None): # normal users only have group id 8 ucr_id = self._divera_client.get_default_ucr() - if self._divera_client.get_usergroup_id(ucr_id) != 8: + usergroup_id = self._divera_client.get_usergroup_id(ucr_id) + if usergroup_id != 8: + LOGGER.warning("Usergroup ID %s is not supported", usergroup_id) return self.async_abort(reason="not_supported") if self._divera_client.get_ucr_count() > 1: diff --git a/scripts/prepare-release.sh b/scripts/prepare-release.sh index 8a8c5d5..783ea39 100755 --- a/scripts/prepare-release.sh +++ b/scripts/prepare-release.sh @@ -3,5 +3,5 @@ VERSION=$1 cd custom_components/divera -sed -i "s/0.0.0/${VERSION}/g" manifest.json +sed -i "s/\"version\": \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/\"version\": \"${VERSION}\"/g" yourfile.json zip divera.zip -r ./