Skip to content
Snippets Groups Projects
Unverified Commit 2f77cda8 authored by Raphael Hehl's avatar Raphael Hehl Committed by GitHub
Browse files

Add basic UniFi Protect AiPort support (#133523)


* UnifiProtect add basic support for AiPort devices

* Sort ignore-words

---------

Co-authored-by: default avatarJ. Nick Koston <nick@koston.org>
parent a9743497
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ repos: ...@@ -12,7 +12,7 @@ repos:
hooks: hooks:
- id: codespell - id: codespell
args: args:
- --ignore-words-list=astroid,checkin,currenty,hass,iif,incomfort,lookin,nam,NotIn - --ignore-words-list=aiport,astroid,checkin,currenty,hass,iif,incomfort,lookin,nam,NotIn
- --skip="./.*,*.csv,*.json,*.ambr" - --skip="./.*,*.csv,*.json,*.ambr"
- --quiet-level=2 - --quiet-level=2
exclude_types: [csv, json, html] exclude_types: [csv, json, html]
......
...@@ -41,6 +41,7 @@ DEFAULT_VERIFY_SSL = False ...@@ -41,6 +41,7 @@ DEFAULT_VERIFY_SSL = False
DEFAULT_MAX_MEDIA = 1000 DEFAULT_MAX_MEDIA = 1000
DEVICES_THAT_ADOPT = { DEVICES_THAT_ADOPT = {
ModelType.AIPORT,
ModelType.CAMERA, ModelType.CAMERA,
ModelType.LIGHT, ModelType.LIGHT,
ModelType.VIEWPORT, ModelType.VIEWPORT,
......
...@@ -119,6 +119,7 @@ def _async_device_entities( ...@@ -119,6 +119,7 @@ def _async_device_entities(
_ALL_MODEL_TYPES = ( _ALL_MODEL_TYPES = (
ModelType.AIPORT,
ModelType.CAMERA, ModelType.CAMERA,
ModelType.LIGHT, ModelType.LIGHT,
ModelType.SENSOR, ModelType.SENSOR,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment