Skip to content

Commit a10e2bc

Browse files
Copilotpuddly
andcommitted
Improve comments for property setters in ZNPCoordinator
Co-authored-by: puddly <32534428+puddly@users.noreply.github.com>
1 parent 4e43ad9 commit a10e2bc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

zigpy_znp/zigbee/device.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,19 @@ def manufacturer(self) -> str:
2121

2222
@manufacturer.setter
2323
def manufacturer(self, value: str) -> None:
24-
pass # Read-only for coordinator
24+
# Setter required to match parent class interface (which has read-write properties)
25+
# but intentionally does nothing since coordinator manufacturer is hardware-determined
26+
pass
2527

2628
@property
2729
def model(self) -> str:
2830
return "Coordinator"
2931

3032
@model.setter
3133
def model(self, value: str) -> None:
32-
pass # Read-only for coordinator
34+
# Setter required to match parent class interface (which has read-write properties)
35+
# but intentionally does nothing since coordinator model is hardware-determined
36+
pass
3337

3438
async def request(
3539
self,

0 commit comments

Comments
 (0)