Skip to content

Commit 603e277

Browse files
epenetfrenck
andauthored
Add docstring to DhcpServiceInfo MAC address (home-assistant#147823)
Co-authored-by: Franck Nijhof <[email protected]>
1 parent 38a7b21 commit 603e277

File tree

1 file changed

+6
-0
lines changed
  • homeassistant/helpers/service_info

1 file changed

+6
-0
lines changed

homeassistant/helpers/service_info/dhcp.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ class DhcpServiceInfo(BaseServiceInfo):
1212
ip: str
1313
hostname: str
1414
macaddress: str
15+
"""The MAC address of the device.
16+
17+
Please note that for historical reason the DHCP service will always format it
18+
as a lowercase string without colons.
19+
eg. "AA:BB:CC:12:34:56" is stored as "aabbcc123456"
20+
"""

0 commit comments

Comments
 (0)