Skip to content

Commit

Permalink
Fix missing Band enum export
Browse files Browse the repository at this point in the history
and minor cleanup
  • Loading branch information
mvdwetering committed Apr 2, 2022
1 parent b91d3ba commit 5d9ee19
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
5 changes: 4 additions & 1 deletion example.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
import time
import logging

from ynca import Receiver, Mute, ZONE_SUBUNIT_IDS, Subunit
from ynca import Receiver, Mute, Subunit

ZONE_SUBUNIT_IDS = [Subunit.MAIN, Subunit.ZONE2, Subunit.ZONE3, Subunit.ZONE4]


if __name__ == "__main__":

Expand Down
12 changes: 5 additions & 7 deletions ynca/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,19 @@

from .connection import YncaConnection, YncaConnectionError, ynca_console
from .constants import (
SoundPrg,
Avail,
Band,
Mute,
Subunit,
ZONE_SUBUNIT_IDS,
Playback,
PlaybackInfo,
Repeat,
Avail,
SoundPrg,
Subunit,
)
from .receiver import (
SUBUNIT_INPUT_MAPPINGS,
Receiver,
YncaInitializationFailedException,
SUBUNIT_INPUT_MAPPINGS,
)

from .zone import ZoneBase

logging.getLogger(__name__).addHandler(logging.NullHandler())
4 changes: 0 additions & 4 deletions ynca/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,3 @@ class Playback(str, Enum):
class Band(str, Enum):
AM = "AM"
FM = "FM"


"""Subunits that are zones """
ZONE_SUBUNIT_IDS = [Subunit.MAIN, Subunit.ZONE2, Subunit.ZONE3, Subunit.ZONE4]

0 comments on commit 5d9ee19

Please sign in to comment.