Fix hard coded id

This commit is contained in:
badaix 2021-06-04 10:13:37 +02:00
parent 5a3559e8e4
commit 9bbba976f9

View file

@ -450,14 +450,14 @@ class SnapcastWrapper(object):
def control(self, command, params={}):
self.send_request("Stream.Control", {
"id": "Pipe", "command": command, "params": params})
"id": self._stream_id, "command": command, "params": params})
def set_property(self, property, value):
properties = {}
properties[property] = value
logger.info(f'set_properties {properties}')
self.send_request("Stream.SetProperties", {
"id": "Pipe", "properties": properties})
"id": self._stream_id, "properties": properties})
@property
def metadata(self):