Skip to content

Commit

Permalink
Merge pull request #57 from noahhusby/refact/subscribe-model
Browse files Browse the repository at this point in the history
aadd controller_id to model
  • Loading branch information
noahhusby authored Sep 25, 2024
2 parents 894d65f + cf4c044 commit 4011287
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion aiorussound/rio.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,9 @@ async def _load_controller(self, controller_id: int) -> Optional[Controller]:
firmware_version = await self.get_variable(
device_str, "firmwareVersion"
)
controller = Controller(controller_type, mac_address, firmware_version, {})
controller = Controller(
controller_id, controller_type, mac_address, firmware_version, {}
)
controller.client = self
controller.device_str = controller_device_str(controller_id)
return controller
Expand Down Expand Up @@ -466,6 +468,7 @@ async def select_source(self, source: int) -> str:
class Controller(AbstractControlSurface):
"""Data class representing a Russound controller."""

controller_id: int
controller_type: str
mac_address: Optional[str]
firmware_version: Optional[str]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aiorussound"
version = "4.0.1"
version = "4.0.2"
description = "Asyncio client for Russound RIO devices."
authors = ["Noah Husby <[email protected]>"]
maintainers = ["Noah Husby <[email protected]>"]
Expand Down

0 comments on commit 4011287

Please sign in to comment.