Skip to content

Commit 254e486

Browse files
authored
Support debug data
1 parent 5d848ee commit 254e486

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
v0.2.7, 2022-04-09 Added debug data property for all entities.
12
v0.2.6, 2022-04-08 Added support for lights that don't report state.
23
Added previously unmapped device states.
34
v0.2.5, 2022-04-08 Added read_only attribute to controllable devices.

pyalarmdotcomajax/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from .errors import UnexpectedDataStructure
3939
from .errors import UnsupportedDevice
4040

41-
__version__ = "0.2.6"
41+
__version__ = "0.2.7"
4242

4343

4444
log = logging.getLogger(__name__)

pyalarmdotcomajax/entities.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ def raw_state_text(self) -> str | None:
176176
"""Return state description as reported by ADC."""
177177
return self._attribs_raw.get("displayStateText")
178178

179+
@property
180+
def debug_data(self) -> dict:
181+
"""Return data that is helpful for debugging."""
182+
return self._attribs_raw
183+
179184
# #
180185
# PLACEHOLDERS
181186
# #

0 commit comments

Comments
 (0)