Skip to content

Commit

Permalink
Add a docstring explaining Device.tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 8, 2024
1 parent a87cab4 commit 8502d8f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jaraco/abode/devices/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ class Device(Stateful):
"""Class to represent each Abode device."""

tags: Tuple[str, ...] = ()
"""
Each device has a ``type_tag``, something like "device_type.door_lock".
Each Device subclass declares the tags that it services (with the
"device_type." prefix omitted).
"""
_desc_t = '{name} (ID: {id}, UUID: {uuid}) - {type} - {status}'
_url_t = urls.DEVICE

Expand Down

0 comments on commit 8502d8f

Please sign in to comment.