061a38cc3b09a4ca72e5b1bb4af306b611ef1d25,homeassistant/components/light/decora.py,DecoraLight,turn_on,#DecoraLight#,106
Before Change
Turn the specified or all lights on.
brightness = kwargs.get(ATTR_BRIGHTNESS)
self._switch.on()
if brightness is not None:
self.set_state(brightness)
self._state = True
After Change
initial = time.monotonic()
while True:
if time.monotonic() - initial >= 10:
return None
try:
self._switch.on()
self._state = True
break
except (DECORA_EXCEPTION, AttributeError):
self._switch.connect()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: home-assistant/home-assistant
Commit Name: 061a38cc3b09a4ca72e5b1bb4af306b611ef1d25
Time: 2017-07-04
Author: mjg59-github@srcf.ucam.org
File Name: homeassistant/components/light/decora.py
Class Name: DecoraLight
Method Name: turn_on
Project Name: sahana/eden
Commit Name: a02a6b64d88537bc544112267e6439eb89cb39f0
Time: 2018-05-29
Author: fran@aidiq.com
File Name: modules/s3db/supply.py
Class Name: supply_ItemCategoryRepresent
Method Name: custom_lookup_rows
Project Name: home-assistant/home-assistant
Commit Name: 4e3ccfffbb55ade14ef85277587f2ce5959e1049
Time: 2015-04-12
Author: rmkraus@gmail.com
File Name: homeassistant/components/isy994.py
Class Name: ISYDeviceABC
Method Name: turn_on