75a39352ffb8c5e7b24fe10a9a66d0839224d3e9,homeassistant/components/climate/homematic.py,HMThermostat,current_operation,#HMThermostat#,73
Before Change
return None
// read state and search
for mode, state in HM_STATE_MAP.items():
code = getattr(self._hmdevice, mode, 0)
if self._data.get("CONTROL_MODE") == code:
return state
@property
def operation_list(self):
Return the list of available operation modes.
op_list = []
After Change
// get the name of the mode
name = HM_ATTRIBUTE_SUPPORT[HM_CONTROL_MODE][1][code]
return name.lower()
@property
def operation_list(self):
Return the list of available operation modes.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: home-assistant/home-assistant
Commit Name: 75a39352ffb8c5e7b24fe10a9a66d0839224d3e9
Time: 2018-01-03
Author: daenny@users.noreply.github.com
File Name: homeassistant/components/climate/homematic.py
Class Name: HMThermostat
Method Name: current_operation
Project Name: cmu-db/ottertune
Commit Name: 944a0ccc8dc9110516192b0b41a12e8f9612f7ef
Time: 2020-02-20
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/db/base/parser.py
Class Name: BaseParser
Method Name: extract_valid_variables
Project Name: cve-search/cve-search
Commit Name: b8ce0940159022a61a2709e615dade45b53f97ef
Time: 2020-08-17
Author: paul.tikken@gmail.com
File Name: sbin/db_mgmt_ref.py
Class Name: VIADownloads
Method Name: process_item