Skip to content

Commit cd94b19

Browse files
committed
Properly remove api_version now
1 parent 8478749 commit cd94b19

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ How to use
4949
>> # Wait for cast device to be ready
5050
>> cast.wait()
5151
>> print(cast.device)
52-
DeviceStatus(friendly_name='Living Room', model_name='Chromecast', manufacturer='Google Inc.', api_version=(1, 0), uuid=UUID('df6944da-f016-4cb8-97d0-3da2ccaa380b'), cast_type='cast')
52+
DeviceStatus(friendly_name='Living Room', model_name='Chromecast', manufacturer='Google Inc.', uuid=UUID('df6944da-f016-4cb8-97d0-3da2ccaa380b'), cast_type='cast')
5353
5454
>> print(cast.status)
5555
CastStatus(is_active_input=True, is_stand_by=False, volume_level=1.0, volume_muted=False, app_id=u'CC1AD845', display_name=u'Default Media Receiver', namespaces=[u'urn:x-cast:com.google.cast.player.message', u'urn:x-cast:com.google.cast.media'], session_id=u'CCA39713-9A4F-34A6-A8BF-5D97BE7ECA5C', transport_id=u'web-9', status_text='')

pychromecast/__init__.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ def _get_chromecast_from_host(host, tries=None, retry_wait=None, timeout=None,
4040
CAST_TYPE_CHROMECAST)
4141
device = DeviceStatus(
4242
friendly_name=friendly_name, model_name=model_name,
43-
manufacturer=None, api_version=None,
44-
uuid=uuid, cast_type=cast_type,
43+
manufacturer=None, uuid=uuid, cast_type=cast_type,
4544
)
4645
return Chromecast(host=ip_address, port=port, device=device, tries=tries,
4746
timeout=timeout, retry_wait=retry_wait,
@@ -152,8 +151,6 @@ def __init__(self, host, port=None, device=None, **kwargs):
152151
dev_status.model_name),
153152
manufacturer=(device.manufacturer or
154153
dev_status.manufacturer),
155-
api_version=(device.api_version or
156-
dev_status.api_version),
157154
uuid=(device.uuid or
158155
dev_status.uuid),
159156
cast_type=(device.cast_type or
@@ -349,7 +346,6 @@ def __repr__(self):
349346
return txt
350347

351348
def __unicode__(self):
352-
return u"Chromecast({}, {}, {}, {}, {}, api={}.{})".format(
349+
return u"Chromecast({}, {}, {}, {}, {})".format(
353350
self.host, self.port, self.device.friendly_name,
354-
self.device.model_name, self.device.manufacturer,
355-
self.device.api_version[0], self.device.api_version[1])
351+
self.device.model_name, self.device.manufacturer)

0 commit comments

Comments
 (0)