02979db3d6efa9a8443dd428ced8e636fcff3c17,homeassistant/components/tahoma.py,,map_tahoma_device,#Any#,80
Before Change
def map_tahoma_device(tahoma_device):
Map tahoma classes to Home Assistant types.
if tahoma_device.type.lower().find("shutter") != -1:
return "cover"
elif tahoma_device.type == "io:LightIOSystemSensor":
return "sensor"
return None
class TahomaDevice(Entity):
After Change
def map_tahoma_device(tahoma_device):
Map Tahoma device types to Home Assistant components.
return TAHOMA_TYPES.get(tahoma_device.type)
class TahomaDevice(Entity):
Representation of a Tahoma device entity.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: home-assistant/home-assistant
Commit Name: 02979db3d6efa9a8443dd428ced8e636fcff3c17
Time: 2018-01-10
Author: bakedraccoon@users.noreply.github.com
File Name: homeassistant/components/tahoma.py
Class Name:
Method Name: map_tahoma_device
Project Name: home-assistant/home-assistant
Commit Name: 6a837f3aad157d72cceac4324ff5983e6f174091
Time: 2016-09-06
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/sensor/zigbee.py
Class Name:
Method Name: setup_platform
Project Name: biocore/scikit-bio
Commit Name: 3da10e17e40af80d89d1d6529f4ec0f9f27e959d
Time: 2015-08-11
Author: zhenjiang.xu@gmail.com
File Name: skbio/io/format/genbank.py
Class Name:
Method Name: _parse_single_genbank