32166fd56ae076634316dc7a6c60c067f86f7604,homeassistant/components/switch/insteon_plm.py,,async_setup_platform,#Any#Any#Any#Any#,20
Before Change
name = device.get("address")
address = device.get("address_hex")
_LOGGER.info("Registered %s with switch platform.", name)
device_list.append(
InsteonPLMSwitchDevice(hass, plm, address, name)
)
After Change
device.address.hex, device.states[state_key].name)
new_entity = None
if state_name in ["lightOnOff", "outletTopOnOff", "outletBottomOnOff"]:
new_entity = InsteonPLMSwitchDevice(device, state_key)
elif state_name == "openClosedRelay":
new_entity = InsteonPLMOpenClosedDevice(device, state_key)
if new_entity is not None:
async_add_devices([new_entity])
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: home-assistant/home-assistant
Commit Name: 32166fd56ae076634316dc7a6c60c067f86f7604
Time: 2018-02-25
Author: tharris@harrisnj.net
File Name: homeassistant/components/switch/insteon_plm.py
Class Name:
Method Name: async_setup_platform
Project Name: home-assistant/home-assistant
Commit Name: 8703124c760df303d29571aa975a72cc4f868f09
Time: 2018-01-17
Author: pierre.staahl@gmail.com
File Name: homeassistant/components/media_player/yamaha.py
Class Name:
Method Name: setup_platform
Project Name: home-assistant/home-assistant
Commit Name: ab8c127a4a466f2c137239c0eb06c8143adea106
Time: 2018-11-18
Author: JeffLIrion@users.noreply.github.com
File Name: homeassistant/components/media_player/firetv.py
Class Name:
Method Name: setup_platform
Project Name: PaddlePaddle/edl
Commit Name: 667d856a2fc27732d745cd7d926e9739ad12995c
Time: 2019-09-28
Author: wangjiawei04@baidu.com
File Name: example/ctr/ctr/train.py
Class Name:
Method Name: train