You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was unable to identify a property for the player power state. Have managed to work around by adding the following into player.py:
@property
def power(self):
"""
Player power state.
:getter: retrieve power state of player
:rtype: bool
:returns: True if on, False if off
:setter: set power state of player on server(True = On)
"""
if self.parse_request("power ?", "_power") == "1":
return True
else:
return False
@power.setter
def power(self, power):
try:
if power == True:
self.request("power {}".format("1"))
elif power == False:
self.request("power {}".format("0"))
self._power = power
except:
pass
The text was updated successfully, but these errors were encountered:
I was unable to identify a property for the player power state. Have managed to work around by adding the following into player.py:
The text was updated successfully, but these errors were encountered: