Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions matter_server/client/models/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def update(self, attributes_data: dict[str, Any]) -> None:
self.set_attribute_value(attribute_path, attribute_value)
# extract device types from Descriptor Cluster
if cluster := self.get_cluster(Clusters.Descriptor):
for dev_info in cluster.deviceTypeList: # type: ignore[unreachable]
for dev_info in cluster.deviceTypeList:
device_type = DEVICE_TYPES.get(dev_info.deviceType)
if device_type is None:
LOGGER.debug("Found unknown device type %s", dev_info)
Expand Down Expand Up @@ -352,7 +352,7 @@ def update(self, node_data: MatterNodeData) -> None:
endpoint.endpoint_id,
)
continue
if descriptor.partsList: # type: ignore[unreachable]
if descriptor.partsList:
for endpoint_id in descriptor.partsList:
self._composed_endpoints[endpoint_id] = endpoint.endpoint_id

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test = [
"aioresponses==0.7.8",
"codespell==2.4.1",
"isort==6.0.1",
"mypy==1.16.1",
"mypy==1.17.0",
"pre-commit==4.2.0",
"pre-commit-hooks==5.0.0",
"pylint==3.3.7",
Expand Down