Skip to content

Commit

Permalink
Merge pull request #31 from noahhusby/fix/export-client-name
Browse files Browse the repository at this point in the history
fix: update init & client name
  • Loading branch information
noahhusby authored Sep 4, 2024
2 parents 75ff253 + d903473 commit 6217646
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
11 changes: 8 additions & 3 deletions aiorussound/__init__.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
"""Asynchronous Python client for Russound RIO."""

from .connection import RussoundTcpConnectionHandler
from .exceptions import (
CommandError,
UncachedVariableError,
UnsupportedFeatureError,
UnsupportedRussoundVersionError,
)
from .rio import Controller, Russound, Source, Zone
from .models import SourceProperties, ZoneProperties, RussoundMessage
from .rio import Controller, RussoundClient, Source, Zone

__all__ = [
"CommandError",
"UnsupportedFeatureError",
"UnsupportedRussoundVersionError",
"UncachedVariableError",
"Russound",
"RussoundClient",
"Controller",
"Zone",
"Source",
"RussoundTcpConnectionHandler",
"ZoneProperties",
"SourceProperties",
"RussoundMessage"
]
8 changes: 4 additions & 4 deletions aiorussound/rio.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
_LOGGER = logging.getLogger(__package__)


class Russound:
class RussoundClient:
"""Manages the RIO connection to a Russound device."""

def __init__(
Expand Down Expand Up @@ -238,7 +238,7 @@ class Controller:

def __init__(
self,
instance: Russound,
instance: RussoundClient,
parent_controller: Controller,
controller_id: int,
mac_address: str,
Expand Down Expand Up @@ -307,7 +307,7 @@ class Zone:
"""

def __init__(
self, instance: Russound, controller: Controller, zone_id: int, name: str
self, instance: RussoundClient, controller: Controller, zone_id: int, name: str
) -> None:
"""Initialize a zone object."""
self.instance = instance
Expand Down Expand Up @@ -440,7 +440,7 @@ class Source:
"""Uniquely identifies a Source."""

def __init__(
self, instance: Russound, source_id: int, name: str
self, instance: RussoundClient, source_id: int, name: str
) -> None:
"""Initialize a Source."""
self.instance = instance
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 = "3.0.0"
version = "3.0.1"
description = "Asyncio client for Russound RIO devices."
authors = ["Noah Husby <[email protected]>"]
maintainers = ["Noah Husby <[email protected]>"]
Expand Down

0 comments on commit 6217646

Please sign in to comment.