Remove dead ozw discovery code (#39098)
This commit is contained in:
1 parent
76ead858cf
commit
3cea3eb6e5
3 files changed
-8
No files matched your search
@@ -1022,7 +1022,6 @@ omit =
|
|||||||
homeassistant/components/supla/*
|
homeassistant/components/supla/*
|
||||||
homeassistant/components/zwave/util.py
|
homeassistant/components/zwave/util.py
|
||||||
homeassistant/components/ozw/__init__.py
|
homeassistant/components/ozw/__init__.py
|
||||||
homeassistant/components/ozw/discovery.py
|
|
||||||
homeassistant/components/ozw/entity.py
|
homeassistant/components/ozw/entity.py
|
||||||
homeassistant/components/ozw/services.py
|
homeassistant/components/ozw/services.py
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,6 @@ DISC_INSTANCE = "instance"
|
|||||||
DISC_NODE_ID = "node_id"
|
DISC_NODE_ID = "node_id"
|
||||||
DISC_OPTIONAL = "optional"
|
DISC_OPTIONAL = "optional"
|
||||||
DISC_PRIMARY = "primary"
|
DISC_PRIMARY = "primary"
|
||||||
DISC_SCHEMAS = "schemas"
|
|
||||||
DISC_SPECIFIC_DEVICE_CLASS = "specific_device_class"
|
DISC_SPECIFIC_DEVICE_CLASS = "specific_device_class"
|
||||||
DISC_TYPE = "type"
|
DISC_TYPE = "type"
|
||||||
DISC_VALUES = "values"
|
DISC_VALUES = "values"
|
||||||
@@ -344,12 +344,6 @@ def check_value_schema(value, schema):
|
|||||||
value.instance, schema[const.DISC_INSTANCE]
|
value.instance, schema[const.DISC_INSTANCE]
|
||||||
):
|
):
|
||||||
return False
|
return False
|
||||||
if const.DISC_SCHEMAS in schema:
|
|
||||||
found = False
|
|
||||||
for schema_item in schema[const.DISC_SCHEMAS]:
|
|
||||||
found = found or check_value_schema(value, schema_item)
|
|
||||||
if not found:
|
|
||||||
return False
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user