diff --git a/README.md b/README.md index 423474f..d5347f0 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,8 @@ - Unifi Access Intercom (UA-Intercom) :x: (partial/experimental support) - Unifi Access Hub Enterprise (UAH-Ent) :x: (partial/experimental support) - Unifi Gate Hub (UGT) :x: (partial/experimental support) -- Unifi Access Ultra :x: (partial/experimental support) +- Unifi Access Ultra (UA-Ultra) :x: (partial/experimental support) +- Unifi Access Door Mini (UA-Hub-Door-Mini) :x: (unsupported - use polling) # Getting Unifi Access API Token - Log in to Unifi Access and Click on Security -> Advanced -> API Token diff --git a/custom_components/unifi_access/hub.py b/custom_components/unifi_access/hub.py index 4074620..60dec7f 100644 --- a/custom_components/unifi_access/hub.py +++ b/custom_components/unifi_access/hub.py @@ -432,6 +432,11 @@ def _handle_UGT_config_update(self, update, device_type): changed_doors.append(existing_door) return changed_doors + def _handle_IGNORED_config_update(self, update, device_type): + """Handle unknown hub types.""" + _LOGGER.debug("UniFi Access Hub type %s ignored", device_type) + _LOGGER.debug("%s", update) + def _handle_UNKNOWN_config_update(self, update, device_type): """Handle unknown hub types.""" _LOGGER.critical("UniFi Access Hub type %s unknown", device_type) @@ -444,14 +449,20 @@ def _handle_config_update(self, update, device_type): return self._handle_UAH_config_update(update, device_type) case "UAH-DOOR": return self._handle_UAH_config_update(update, device_type) - case "UA-Intercom": - return self._handle_UAH_config_update(update, device_type) case "UAH-Ent": return self._handle_UAH_Ent_config_update(update, device_type) case "UA-ULTRA": return self._handle_UAH_Ent_config_update(update, device_type) case "UGT": return self._handle_UGT_config_update(update, device_type) + case "UA-G2": + return self._handle_IGNORED_config_update(update, device_type) + case "UA-G2-PRO": + return self._handle_IGNORED_config_update(update, device_type) + case "UA-G3": + return self._handle_IGNORED_config_update(update, device_type) + case "UA-Intercom": + return self._handle_IGNORED_config_update(update, device_type) case _: return self._handle_UNKNOWN_config_update(update, device_type) diff --git a/custom_components/unifi_access/manifest.json b/custom_components/unifi_access/manifest.json index 4529b0c..750b96a 100644 --- a/custom_components/unifi_access/manifest.json +++ b/custom_components/unifi_access/manifest.json @@ -12,5 +12,5 @@ "requirements": [ "websocket-client==1.8.0" ], - "version": "1.2.5" -} \ No newline at end of file + "version": "1.2.6" +}