Skip to content

Commit

Permalink
hotfix: remove properties on load
Browse files Browse the repository at this point in the history
  • Loading branch information
noahhusby committed Jul 22, 2024
1 parent 91d5855 commit 1c920ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions aiorussound/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,10 @@ class FeatureFlag(Enum):
VERSIONS_BY_FLAGS = defaultdict(list)

ZONE_PROPERTIES = [
'volume', 'bass', 'treble', 'balance', 'loudness', 'turnOnVolume', 'doNotDisturb', 'partyMode', 'status', 'mute',
'sharedSource', 'lastError', 'page', 'sleepTimeDefault', 'sleepTimeRemaining', 'enabled'
'currentSource'
]

SOURCE_PROPERTIES = [
'type', 'channel', 'coverArtURL', 'channelName', 'genre', 'artistName', 'albumName', 'playlistName', 'songName',
'programServiceName', 'radioText', 'shuffleMode', 'repeatMode', 'mode', 'playStatus', 'sampleRate', 'bitRate',
'bitDepth', 'playTime', 'trackTime'
]

for version, flags in FLAGS_BY_VERSION.items():
Expand Down
4 changes: 2 additions & 2 deletions aiorussound/rio.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def fetch_current_source(self):

@property
def volume(self):
return self._get('volume')
return self._get('volume', '0')

@property
def bass(self):
Expand Down Expand Up @@ -449,7 +449,7 @@ def party_mode(self):

@property
def status(self):
return self._get('status')
return self._get('status', 'OFF')

@property
def mute(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='aiorussound',
version='2.0.5',
version='2.0.6',
packages=['aiorussound'],
license='MIT',
author='Noah Husby',
Expand Down

0 comments on commit 1c920ee

Please sign in to comment.