Skip to content

Commit

Permalink
Update README.rst (#751)
Browse files Browse the repository at this point in the history
Post version 10, "device" has been replaced with "cast_info."  Readme for current version should reflect this.
  • Loading branch information
davidjabon authored Nov 21, 2023
1 parent 751450a commit 60432df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ How to use
>> # Discover and connect to chromecasts named Living Room
>> chromecasts, browser = pychromecast.get_listed_chromecasts(friendly_names=["Living Room"])
>> [cc.device.friendly_name for cc in chromecasts]
>> [cc.cast_info.friendly_name for cc in chromecasts]
['Living Room']
>> cast = chromecasts[0]
>> # Start worker thread and wait for cast device to be ready
>> cast.wait()
>> print(cast.device)
>> print(cast.cast_info)
DeviceStatus(friendly_name='Living Room', model_name='Chromecast', manufacturer='Google Inc.', uuid=UUID('df6944da-f016-4cb8-97d0-3da2ccaa380b'), cast_type='cast')
>> print(cast.status)
Expand Down

0 comments on commit 60432df

Please sign in to comment.