Skip to content

Commit 304e4f3

Browse files
rsnodgrassSage-Ox
andcommitted
Update DAX88 defaults to zones 11-18, require pyxantech 0.10.3
- DAX88 default zones now 11-18 (matching user's working config) - Require pyxantech>=0.10.3 which fixes ZoneStatus.dict type conversion - Add docstring documenting expected types from pyxantech - Bump version to 0.2.5 Co-Authored-By: SageOx <ox@sageox.ai>
1 parent b34705b commit 304e4f3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

custom_components/xantech/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.2.5",
55
"documentation": "https://github.com/rsnodgrass/hass-xantech",
66
"issue_tracker": "https://github.com/rsnodgrass/hass-xantech/issues",
7-
"requirements": ["pyxantech>=0.10.2"],
7+
"requirements": ["pyxantech>=0.10.3"],
88
"homeassistant": "2025.2.0",
99
"codeowners": ["@rsnodgrass"],
1010
"config_flow": true,

custom_components/xantech/media_player.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,15 @@ def __init__(
118118

119119
@property
120120
def _zone_status(self) -> dict[str, Any]:
121-
"""Get current zone status from coordinator data."""
121+
"""Get current zone status from coordinator data.
122+
123+
Expected types from pyxantech ZoneStatus.dict:
124+
power: bool (not string '01'/'00')
125+
mute: bool
126+
volume: int (0-38)
127+
source: int
128+
zone: int
129+
"""
122130
if self.coordinator.data:
123131
return self.coordinator.data.get(self._zone_id, {})
124132
return {}

0 commit comments

Comments
 (0)