00068e88b01eeeb2636ab6e11a83c4a4ed2dc2d9,homeassistant/components/ue_smart_radio/media_player.py,,setup_platform,#Any#Any#Any#Any#,72
Before Change
session = session_request.cookies["sdi_squeezenetwork_session"]
player_request = send_request({"params": ["", ["serverstatus"]]}, session)
player_id = player_request["result"]["players_loop"][0]["playerid"]
player_name = player_request["result"]["players_loop"][0]["name"]
add_entities([UERadioDevice(session, player_id, player_name)])
class UERadioDevice(MediaPlayerEntity):
Representation of a Logitech UE Smart Radio device.
After Change
player_request = send_request({"params": ["", ["serverstatus"]]}, session)
players = [
UERadioDevice(session, player["playerid"], player["name"])
for player in player_request["result"]["players_loop"]
]
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: home-assistant/home-assistant
Commit Name: 00068e88b01eeeb2636ab6e11a83c4a4ed2dc2d9
Time: 2020-06-10
Author: fredrik@rambris.com
File Name: homeassistant/components/ue_smart_radio/media_player.py
Class Name:
Method Name: setup_platform
Project Name: home-assistant/home-assistant
Commit Name: 369e6a3905a6610377797ec8cdc64e7a42f436aa
Time: 2019-07-14
Author: austin@mroczek.org
File Name: homeassistant/components/totalconnect/alarm_control_panel.py
Class Name:
Method Name: setup_platform
Project Name: home-assistant/home-assistant
Commit Name: 9944c60311046df03f2d0706ba2c3477e733d49b
Time: 2018-09-08
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/sensor/lastfm.py
Class Name:
Method Name: setup_platform
Project Name: home-assistant/home-assistant
Commit Name: db23320659a711637b5164fbe6ae6db15cc48e48
Time: 2016-07-06
Author: dale3h@gmail.com
File Name: homeassistant/components/sensor/apcupsd.py
Class Name:
Method Name: setup_platform