Search is not available for this dataset
identifier stringlengths 1 155 | parameters stringlengths 2 6.09k | docstring stringlengths 11 63.4k | docstring_summary stringlengths 0 63.4k | function stringlengths 29 99.8k | function_tokens list | start_point list | end_point list | language stringclasses 1
value | docstring_language stringlengths 2 7 | docstring_language_predictions stringlengths 18 23 | is_langid_reliable stringclasses 2
values |
|---|---|---|---|---|---|---|---|---|---|---|---|
ZWaveClimateBase.set_preset_mode | (self, preset_mode) | Set new target preset mode. | Set new target preset mode. | def set_preset_mode(self, preset_mode):
"""Set new target preset mode."""
_LOGGER.debug("Set preset_mode to %s", preset_mode)
if not self._mode():
return
if preset_mode == PRESET_NONE:
# Activate the current hvac mode
self._update_operation_mode()
... | [
"def",
"set_preset_mode",
"(",
"self",
",",
"preset_mode",
")",
":",
"_LOGGER",
".",
"debug",
"(",
"\"Set preset_mode to %s\"",
",",
"preset_mode",
")",
"if",
"not",
"self",
".",
"_mode",
"(",
")",
":",
"return",
"if",
"preset_mode",
"==",
"PRESET_NONE",
":"... | [
549,
4
] | [
563,
46
] | python | de | ['de', 'su', 'en'] | False |
ZWaveClimateBase.set_swing_mode | (self, swing_mode) | Set new target swing mode. | Set new target swing mode. | def set_swing_mode(self, swing_mode):
"""Set new target swing mode."""
_LOGGER.debug("Set swing_mode to %s", swing_mode)
if self._zxt_120 == 1:
if self.values.zxt_120_swing_mode:
self.values.zxt_120_swing_mode.data = swing_mode | [
"def",
"set_swing_mode",
"(",
"self",
",",
"swing_mode",
")",
":",
"_LOGGER",
".",
"debug",
"(",
"\"Set swing_mode to %s\"",
",",
"swing_mode",
")",
"if",
"self",
".",
"_zxt_120",
"==",
"1",
":",
"if",
"self",
".",
"values",
".",
"zxt_120_swing_mode",
":",
... | [
565,
4
] | [
570,
64
] | python | en | ['en', 'jv', 'en'] | True |
ZWaveClimateBase.device_state_attributes | (self) | Return the optional state attributes. | Return the optional state attributes. | def device_state_attributes(self):
"""Return the optional state attributes."""
data = super().device_state_attributes
if self._fan_action:
data[ATTR_FAN_ACTION] = self._fan_action
return data | [
"def",
"device_state_attributes",
"(",
"self",
")",
":",
"data",
"=",
"super",
"(",
")",
".",
"device_state_attributes",
"if",
"self",
".",
"_fan_action",
":",
"data",
"[",
"ATTR_FAN_ACTION",
"]",
"=",
"self",
".",
"_fan_action",
"return",
"data"
] | [
573,
4
] | [
578,
19
] | python | en | ['en', 'en', 'en'] | True |
ZWaveClimateSingleSetpoint.__init__ | (self, values, temp_unit) | Initialize the Z-Wave climate device. | Initialize the Z-Wave climate device. | def __init__(self, values, temp_unit):
"""Initialize the Z-Wave climate device."""
ZWaveClimateBase.__init__(self, values, temp_unit) | [
"def",
"__init__",
"(",
"self",
",",
"values",
",",
"temp_unit",
")",
":",
"ZWaveClimateBase",
".",
"__init__",
"(",
"self",
",",
"values",
",",
"temp_unit",
")"
] | [
584,
4
] | [
586,
58
] | python | en | ['en', 'en', 'en'] | True |
ZWaveClimateSingleSetpoint._mode | (self) | Return thermostat mode Z-Wave value. | Return thermostat mode Z-Wave value. | def _mode(self) -> None:
"""Return thermostat mode Z-Wave value."""
return self.values.mode | [
"def",
"_mode",
"(",
"self",
")",
"->",
"None",
":",
"return",
"self",
".",
"values",
".",
"mode"
] | [
588,
4
] | [
590,
31
] | python | en | ['en', 'cs', 'en'] | True |
ZWaveClimateSingleSetpoint._current_mode_setpoints | (self) | Return a tuple of current setpoint Z-Wave value(s). | Return a tuple of current setpoint Z-Wave value(s). | def _current_mode_setpoints(self) -> Tuple:
"""Return a tuple of current setpoint Z-Wave value(s)."""
return (self.values.primary,) | [
"def",
"_current_mode_setpoints",
"(",
"self",
")",
"->",
"Tuple",
":",
"return",
"(",
"self",
".",
"values",
".",
"primary",
",",
")"
] | [
592,
4
] | [
594,
37
] | python | en | ['en', 'en', 'en'] | True |
ZWaveClimateMultipleSetpoint.__init__ | (self, values, temp_unit) | Initialize the Z-Wave climate device. | Initialize the Z-Wave climate device. | def __init__(self, values, temp_unit):
"""Initialize the Z-Wave climate device."""
ZWaveClimateBase.__init__(self, values, temp_unit) | [
"def",
"__init__",
"(",
"self",
",",
"values",
",",
"temp_unit",
")",
":",
"ZWaveClimateBase",
".",
"__init__",
"(",
"self",
",",
"values",
",",
"temp_unit",
")"
] | [
600,
4
] | [
602,
58
] | python | en | ['en', 'en', 'en'] | True |
ZWaveClimateMultipleSetpoint._mode | (self) | Return thermostat mode Z-Wave value. | Return thermostat mode Z-Wave value. | def _mode(self) -> None:
"""Return thermostat mode Z-Wave value."""
return self.values.primary | [
"def",
"_mode",
"(",
"self",
")",
"->",
"None",
":",
"return",
"self",
".",
"values",
".",
"primary"
] | [
604,
4
] | [
606,
34
] | python | en | ['en', 'cs', 'en'] | True |
ZWaveClimateMultipleSetpoint._current_mode_setpoints | (self) | Return a tuple of current setpoint Z-Wave value(s). | Return a tuple of current setpoint Z-Wave value(s). | def _current_mode_setpoints(self) -> Tuple:
"""Return a tuple of current setpoint Z-Wave value(s)."""
current_mode = str(self.values.primary.data).lower()
setpoints_names = MODE_SETPOINT_MAPPINGS.get(current_mode, ())
return tuple(getattr(self.values, name, None) for name in setpoints_na... | [
"def",
"_current_mode_setpoints",
"(",
"self",
")",
"->",
"Tuple",
":",
"current_mode",
"=",
"str",
"(",
"self",
".",
"values",
".",
"primary",
".",
"data",
")",
".",
"lower",
"(",
")",
"setpoints_names",
"=",
"MODE_SETPOINT_MAPPINGS",
".",
"get",
"(",
"cu... | [
608,
4
] | [
612,
82
] | python | en | ['en', 'en', 'en'] | True |
async_setup_platform | (hass, config, async_add_entities, discovery_info=None) | Set up the SNMP sensor. | Set up the SNMP sensor. | async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Set up the SNMP sensor."""
name = config.get(CONF_NAME)
host = config.get(CONF_HOST)
port = config.get(CONF_PORT)
community = config.get(CONF_COMMUNITY)
baseoid = config.get(CONF_BASEOID)
unit = config.... | [
"async",
"def",
"async_setup_platform",
"(",
"hass",
",",
"config",
",",
"async_add_entities",
",",
"discovery_info",
"=",
"None",
")",
":",
"name",
"=",
"config",
".",
"get",
"(",
"CONF_NAME",
")",
"host",
"=",
"config",
".",
"get",
"(",
"CONF_HOST",
")",... | [
81,
0
] | [
138,
76
] | python | en | ['en', 'su', 'en'] | True |
SnmpSensor.__init__ | (self, data, name, unit_of_measurement, value_template) | Initialize the sensor. | Initialize the sensor. | def __init__(self, data, name, unit_of_measurement, value_template):
"""Initialize the sensor."""
self.data = data
self._name = name
self._state = None
self._unit_of_measurement = unit_of_measurement
self._value_template = value_template | [
"def",
"__init__",
"(",
"self",
",",
"data",
",",
"name",
",",
"unit_of_measurement",
",",
"value_template",
")",
":",
"self",
".",
"data",
"=",
"data",
"self",
".",
"_name",
"=",
"name",
"self",
".",
"_state",
"=",
"None",
"self",
".",
"_unit_of_measure... | [
144,
4
] | [
150,
45
] | python | en | ['en', 'en', 'en'] | True |
SnmpSensor.name | (self) | Return the name of the sensor. | Return the name of the sensor. | def name(self):
"""Return the name of the sensor."""
return self._name | [
"def",
"name",
"(",
"self",
")",
":",
"return",
"self",
".",
"_name"
] | [
153,
4
] | [
155,
25
] | python | en | ['en', 'mi', 'en'] | True |
SnmpSensor.state | (self) | Return the state of the sensor. | Return the state of the sensor. | def state(self):
"""Return the state of the sensor."""
return self._state | [
"def",
"state",
"(",
"self",
")",
":",
"return",
"self",
".",
"_state"
] | [
158,
4
] | [
160,
26
] | python | en | ['en', 'en', 'en'] | True |
SnmpSensor.unit_of_measurement | (self) | Return the unit the value is expressed in. | Return the unit the value is expressed in. | def unit_of_measurement(self):
"""Return the unit the value is expressed in."""
return self._unit_of_measurement | [
"def",
"unit_of_measurement",
"(",
"self",
")",
":",
"return",
"self",
".",
"_unit_of_measurement"
] | [
163,
4
] | [
165,
40
] | python | en | ['en', 'en', 'en'] | True |
SnmpSensor.async_update | (self) | Get the latest data and updates the states. | Get the latest data and updates the states. | async def async_update(self):
"""Get the latest data and updates the states."""
await self.data.async_update()
value = self.data.value
if value is None:
value = STATE_UNKNOWN
elif self._value_template is not None:
value = self._value_template.async_render... | [
"async",
"def",
"async_update",
"(",
"self",
")",
":",
"await",
"self",
".",
"data",
".",
"async_update",
"(",
")",
"value",
"=",
"self",
".",
"data",
".",
"value",
"if",
"value",
"is",
"None",
":",
"value",
"=",
"STATE_UNKNOWN",
"elif",
"self",
".",
... | [
167,
4
] | [
179,
27
] | python | en | ['en', 'en', 'en'] | True |
SnmpData.__init__ | (self, request_args, baseoid, accept_errors, default_value) | Initialize the data object. | Initialize the data object. | def __init__(self, request_args, baseoid, accept_errors, default_value):
"""Initialize the data object."""
self._request_args = request_args
self._baseoid = baseoid
self._accept_errors = accept_errors
self._default_value = default_value
self.value = None | [
"def",
"__init__",
"(",
"self",
",",
"request_args",
",",
"baseoid",
",",
"accept_errors",
",",
"default_value",
")",
":",
"self",
".",
"_request_args",
"=",
"request_args",
"self",
".",
"_baseoid",
"=",
"baseoid",
"self",
".",
"_accept_errors",
"=",
"accept_e... | [
185,
4
] | [
191,
25
] | python | en | ['en', 'en', 'en'] | True |
SnmpData.async_update | (self) | Get the latest data from the remote SNMP capable host. | Get the latest data from the remote SNMP capable host. | async def async_update(self):
"""Get the latest data from the remote SNMP capable host."""
errindication, errstatus, errindex, restable = await getCmd(
*self._request_args, ObjectType(ObjectIdentity(self._baseoid))
)
if errindication and not self._accept_errors:
... | [
"async",
"def",
"async_update",
"(",
"self",
")",
":",
"errindication",
",",
"errstatus",
",",
"errindex",
",",
"restable",
"=",
"await",
"getCmd",
"(",
"*",
"self",
".",
"_request_args",
",",
"ObjectType",
"(",
"ObjectIdentity",
"(",
"self",
".",
"_baseoid"... | [
193,
4
] | [
212,
44
] | python | en | ['en', 'en', 'en'] | True |
async_setup_platform | (hass, config, async_add_entities, discovery_info=None) | Set up the devices associated with the account. | Set up the devices associated with the account. | async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Set up the devices associated with the account."""
token = config.get(CONF_TOKEN)
username = config.get(CONF_USERNAME)
client = FoobotClient(
token, username, async_get_clientsession(hass), timeout=TIMEOUT... | [
"async",
"def",
"async_setup_platform",
"(",
"hass",
",",
"config",
",",
"async_add_entities",
",",
"discovery_info",
"=",
"None",
")",
":",
"token",
"=",
"config",
".",
"get",
"(",
"CONF_TOKEN",
")",
"username",
"=",
"config",
".",
"get",
"(",
"CONF_USERNAM... | [
60,
0
] | [
90,
33
] | python | en | ['en', 'en', 'en'] | True |
FoobotSensor.__init__ | (self, data, device, sensor_type) | Initialize the sensor. | Initialize the sensor. | def __init__(self, data, device, sensor_type):
"""Initialize the sensor."""
self._uuid = device["uuid"]
self.foobot_data = data
self._name = f"Foobot {device['name']} {SENSOR_TYPES[sensor_type][0]}"
self.type = sensor_type
self._unit_of_measurement = SENSOR_TYPES[sensor_t... | [
"def",
"__init__",
"(",
"self",
",",
"data",
",",
"device",
",",
"sensor_type",
")",
":",
"self",
".",
"_uuid",
"=",
"device",
"[",
"\"uuid\"",
"]",
"self",
".",
"foobot_data",
"=",
"data",
"self",
".",
"_name",
"=",
"f\"Foobot {device['name']} {SENSOR_TYPES... | [
96,
4
] | [
102,
64
] | python | en | ['en', 'en', 'en'] | True |
FoobotSensor.name | (self) | Return the name of the sensor. | Return the name of the sensor. | def name(self):
"""Return the name of the sensor."""
return self._name | [
"def",
"name",
"(",
"self",
")",
":",
"return",
"self",
".",
"_name"
] | [
105,
4
] | [
107,
25
] | python | en | ['en', 'mi', 'en'] | True |
FoobotSensor.icon | (self) | Icon to use in the frontend. | Icon to use in the frontend. | def icon(self):
"""Icon to use in the frontend."""
return SENSOR_TYPES[self.type][2] | [
"def",
"icon",
"(",
"self",
")",
":",
"return",
"SENSOR_TYPES",
"[",
"self",
".",
"type",
"]",
"[",
"2",
"]"
] | [
110,
4
] | [
112,
41
] | python | en | ['en', 'en', 'en'] | True |
FoobotSensor.state | (self) | Return the state of the device. | Return the state of the device. | def state(self):
"""Return the state of the device."""
try:
data = self.foobot_data.data[self.type]
except (KeyError, TypeError):
data = None
return data | [
"def",
"state",
"(",
"self",
")",
":",
"try",
":",
"data",
"=",
"self",
".",
"foobot_data",
".",
"data",
"[",
"self",
".",
"type",
"]",
"except",
"(",
"KeyError",
",",
"TypeError",
")",
":",
"data",
"=",
"None",
"return",
"data"
] | [
115,
4
] | [
121,
19
] | python | en | ['en', 'en', 'en'] | True |
FoobotSensor.unique_id | (self) | Return the unique id of this entity. | Return the unique id of this entity. | def unique_id(self):
"""Return the unique id of this entity."""
return f"{self._uuid}_{self.type}" | [
"def",
"unique_id",
"(",
"self",
")",
":",
"return",
"f\"{self._uuid}_{self.type}\""
] | [
124,
4
] | [
126,
42
] | python | en | ['en', 'en', 'en'] | True |
FoobotSensor.unit_of_measurement | (self) | Return the unit of measurement of this entity. | Return the unit of measurement of this entity. | def unit_of_measurement(self):
"""Return the unit of measurement of this entity."""
return self._unit_of_measurement | [
"def",
"unit_of_measurement",
"(",
"self",
")",
":",
"return",
"self",
".",
"_unit_of_measurement"
] | [
129,
4
] | [
131,
40
] | python | en | ['en', 'en', 'en'] | True |
FoobotSensor.async_update | (self) | Get the latest data. | Get the latest data. | async def async_update(self):
"""Get the latest data."""
await self.foobot_data.async_update() | [
"async",
"def",
"async_update",
"(",
"self",
")",
":",
"await",
"self",
".",
"foobot_data",
".",
"async_update",
"(",
")"
] | [
133,
4
] | [
135,
45
] | python | en | ['en', 'en', 'en'] | True |
FoobotData.__init__ | (self, client, uuid) | Initialize the data object. | Initialize the data object. | def __init__(self, client, uuid):
"""Initialize the data object."""
self._client = client
self._uuid = uuid
self.data = {} | [
"def",
"__init__",
"(",
"self",
",",
"client",
",",
"uuid",
")",
":",
"self",
".",
"_client",
"=",
"client",
"self",
".",
"_uuid",
"=",
"uuid",
"self",
".",
"data",
"=",
"{",
"}"
] | [
141,
4
] | [
145,
22
] | python | en | ['en', 'en', 'en'] | True |
FoobotData.async_update | (self) | Get the data from Foobot API. | Get the data from Foobot API. | async def async_update(self):
"""Get the data from Foobot API."""
interval = SCAN_INTERVAL.total_seconds()
try:
response = await self._client.get_last_data(
self._uuid, interval, interval + 1
)
except (
aiohttp.client_exceptions.ClientC... | [
"async",
"def",
"async_update",
"(",
"self",
")",
":",
"interval",
"=",
"SCAN_INTERVAL",
".",
"total_seconds",
"(",
")",
"try",
":",
"response",
"=",
"await",
"self",
".",
"_client",
".",
"get_last_data",
"(",
"self",
".",
"_uuid",
",",
"interval",
",",
... | [
148,
4
] | [
165,
19
] | python | en | ['en', 'en', 'en'] | True |
async_setup_entry | (hass, config_entry, async_add_entities) | Set up scenes for deCONZ component. | Set up scenes for deCONZ component. | async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up scenes for deCONZ component."""
gateway = get_gateway_from_config_entry(hass, config_entry)
@callback
def async_add_scene(scenes):
"""Add scene from deCONZ."""
entities = [DeconzScene(scene, gateway) for scen... | [
"async",
"def",
"async_setup_entry",
"(",
"hass",
",",
"config_entry",
",",
"async_add_entities",
")",
":",
"gateway",
"=",
"get_gateway_from_config_entry",
"(",
"hass",
",",
"config_entry",
")",
"@",
"callback",
"def",
"async_add_scene",
"(",
"scenes",
")",
":",
... | [
11,
0
] | [
29,
48
] | python | da | ['da', 'nl', 'en'] | False |
DeconzScene.__init__ | (self, scene, gateway) | Set up a scene. | Set up a scene. | def __init__(self, scene, gateway):
"""Set up a scene."""
self._scene = scene
self.gateway = gateway | [
"def",
"__init__",
"(",
"self",
",",
"scene",
",",
"gateway",
")",
":",
"self",
".",
"_scene",
"=",
"scene",
"self",
".",
"gateway",
"=",
"gateway"
] | [
35,
4
] | [
38,
30
] | python | en | ['en', 'cs', 'en'] | True |
DeconzScene.async_added_to_hass | (self) | Subscribe to sensors events. | Subscribe to sensors events. | async def async_added_to_hass(self):
"""Subscribe to sensors events."""
self.gateway.deconz_ids[self.entity_id] = self._scene.deconz_id | [
"async",
"def",
"async_added_to_hass",
"(",
"self",
")",
":",
"self",
".",
"gateway",
".",
"deconz_ids",
"[",
"self",
".",
"entity_id",
"]",
"=",
"self",
".",
"_scene",
".",
"deconz_id"
] | [
40,
4
] | [
42,
71
] | python | en | ['en', 'en', 'en'] | True |
DeconzScene.async_will_remove_from_hass | (self) | Disconnect scene object when removed. | Disconnect scene object when removed. | async def async_will_remove_from_hass(self) -> None:
"""Disconnect scene object when removed."""
del self.gateway.deconz_ids[self.entity_id]
self._scene = None | [
"async",
"def",
"async_will_remove_from_hass",
"(",
"self",
")",
"->",
"None",
":",
"del",
"self",
".",
"gateway",
".",
"deconz_ids",
"[",
"self",
".",
"entity_id",
"]",
"self",
".",
"_scene",
"=",
"None"
] | [
44,
4
] | [
47,
26
] | python | en | ['en', 'en', 'en'] | True |
DeconzScene.async_activate | (self, **kwargs: Any) | Activate the scene. | Activate the scene. | async def async_activate(self, **kwargs: Any) -> None:
"""Activate the scene."""
await self._scene.async_set_state({}) | [
"async",
"def",
"async_activate",
"(",
"self",
",",
"*",
"*",
"kwargs",
":",
"Any",
")",
"->",
"None",
":",
"await",
"self",
".",
"_scene",
".",
"async_set_state",
"(",
"{",
"}",
")"
] | [
49,
4
] | [
51,
45
] | python | en | ['en', 'it', 'en'] | True |
DeconzScene.name | (self) | Return the name of the scene. | Return the name of the scene. | def name(self):
"""Return the name of the scene."""
return self._scene.full_name | [
"def",
"name",
"(",
"self",
")",
":",
"return",
"self",
".",
"_scene",
".",
"full_name"
] | [
54,
4
] | [
56,
36
] | python | en | ['en', 'ig', 'en'] | True |
hans_data_collator | (features: List[InputFeatures]) |
Data collator that removes the "pairID" key if present.
|
Data collator that removes the "pairID" key if present.
| def hans_data_collator(features: List[InputFeatures]) -> Dict[str, torch.Tensor]:
"""
Data collator that removes the "pairID" key if present.
"""
batch = default_data_collator(features)
_ = batch.pop("pairID", None)
return batch | [
"def",
"hans_data_collator",
"(",
"features",
":",
"List",
"[",
"InputFeatures",
"]",
")",
"->",
"Dict",
"[",
"str",
",",
"torch",
".",
"Tensor",
"]",
":",
"batch",
"=",
"default_data_collator",
"(",
"features",
")",
"_",
"=",
"batch",
".",
"pop",
"(",
... | [
88,
0
] | [
94,
16
] | python | en | ['en', 'error', 'th'] | False |
test_flow_works | (hass, aioclient_mock) | Test config flow without 2fa. | Test config flow without 2fa. | async def test_flow_works(hass, aioclient_mock):
"""Test config flow without 2fa."""
flow = config_flow.HangoutsFlowHandler()
flow.hass = hass
with patch("homeassistant.components.hangouts.config_flow.get_auth"):
result = await flow.async_step_user(
{CONF_EMAIL: EMAIL, CONF_PASSWOR... | [
"async",
"def",
"test_flow_works",
"(",
"hass",
",",
"aioclient_mock",
")",
":",
"flow",
"=",
"config_flow",
".",
"HangoutsFlowHandler",
"(",
")",
"flow",
".",
"hass",
"=",
"hass",
"with",
"patch",
"(",
"\"homeassistant.components.hangouts.config_flow.get_auth\"",
"... | [
12,
0
] | [
23,
39
] | python | en | ['en', 'en', 'en'] | True |
test_flow_works_with_authcode | (hass, aioclient_mock) | Test config flow without 2fa. | Test config flow without 2fa. | async def test_flow_works_with_authcode(hass, aioclient_mock):
"""Test config flow without 2fa."""
flow = config_flow.HangoutsFlowHandler()
flow.hass = hass
with patch("homeassistant.components.hangouts.config_flow.get_auth"):
result = await flow.async_step_user(
{
... | [
"async",
"def",
"test_flow_works_with_authcode",
"(",
"hass",
",",
"aioclient_mock",
")",
":",
"flow",
"=",
"config_flow",
".",
"HangoutsFlowHandler",
"(",
")",
"flow",
".",
"hass",
"=",
"hass",
"with",
"patch",
"(",
"\"homeassistant.components.hangouts.config_flow.ge... | [
26,
0
] | [
41,
39
] | python | en | ['en', 'en', 'en'] | True |
test_flow_works_with_2fa | (hass, aioclient_mock) | Test config flow with 2fa. | Test config flow with 2fa. | async def test_flow_works_with_2fa(hass, aioclient_mock):
"""Test config flow with 2fa."""
from homeassistant.components.hangouts.hangups_utils import Google2FAError
flow = config_flow.HangoutsFlowHandler()
flow.hass = hass
with patch(
"homeassistant.components.hangouts.config_flow.get_au... | [
"async",
"def",
"test_flow_works_with_2fa",
"(",
"hass",
",",
"aioclient_mock",
")",
":",
"from",
"homeassistant",
".",
"components",
".",
"hangouts",
".",
"hangups_utils",
"import",
"Google2FAError",
"flow",
"=",
"config_flow",
".",
"HangoutsFlowHandler",
"(",
")",... | [
44,
0
] | [
65,
39
] | python | en | ['en', 'en', 'en'] | True |
test_flow_with_unknown_2fa | (hass, aioclient_mock) | Test config flow with invalid 2fa method. | Test config flow with invalid 2fa method. | async def test_flow_with_unknown_2fa(hass, aioclient_mock):
"""Test config flow with invalid 2fa method."""
from homeassistant.components.hangouts.hangups_utils import GoogleAuthError
flow = config_flow.HangoutsFlowHandler()
flow.hass = hass
with patch(
"homeassistant.components.hangouts.... | [
"async",
"def",
"test_flow_with_unknown_2fa",
"(",
"hass",
",",
"aioclient_mock",
")",
":",
"from",
"homeassistant",
".",
"components",
".",
"hangouts",
".",
"hangups_utils",
"import",
"GoogleAuthError",
"flow",
"=",
"config_flow",
".",
"HangoutsFlowHandler",
"(",
"... | [
68,
0
] | [
84,
63
] | python | en | ['en', 'en', 'en'] | True |
test_flow_invalid_login | (hass, aioclient_mock) | Test config flow with invalid 2fa method. | Test config flow with invalid 2fa method. | async def test_flow_invalid_login(hass, aioclient_mock):
"""Test config flow with invalid 2fa method."""
from homeassistant.components.hangouts.hangups_utils import GoogleAuthError
flow = config_flow.HangoutsFlowHandler()
flow.hass = hass
with patch(
"homeassistant.components.hangouts.con... | [
"async",
"def",
"test_flow_invalid_login",
"(",
"hass",
",",
"aioclient_mock",
")",
":",
"from",
"homeassistant",
".",
"components",
".",
"hangouts",
".",
"hangups_utils",
"import",
"GoogleAuthError",
"flow",
"=",
"config_flow",
".",
"HangoutsFlowHandler",
"(",
")",... | [
87,
0
] | [
103,
58
] | python | en | ['en', 'en', 'en'] | True |
test_flow_invalid_2fa | (hass, aioclient_mock) | Test config flow with 2fa. | Test config flow with 2fa. | async def test_flow_invalid_2fa(hass, aioclient_mock):
"""Test config flow with 2fa."""
from homeassistant.components.hangouts.hangups_utils import Google2FAError
flow = config_flow.HangoutsFlowHandler()
flow.hass = hass
with patch(
"homeassistant.components.hangouts.config_flow.get_auth"... | [
"async",
"def",
"test_flow_invalid_2fa",
"(",
"hass",
",",
"aioclient_mock",
")",
":",
"from",
"homeassistant",
".",
"components",
".",
"hangouts",
".",
"hangups_utils",
"import",
"Google2FAError",
"flow",
"=",
"config_flow",
".",
"HangoutsFlowHandler",
"(",
")",
... | [
106,
0
] | [
131,
56
] | python | en | ['en', 'en', 'en'] | True |
generate_random_sparsity_v2 | (model) |
Only select 50% layers to prune.
|
Only select 50% layers to prune.
| def generate_random_sparsity_v2(model):
"""
Only select 50% layers to prune.
"""
cfg_list = []
for name, module in model.named_modules():
if isinstance(module, nn.Conv2d):
if np.random.uniform(0, 1.0) > 0.5:
sparsity = np.random.uniform(0.5, 0.99)
... | [
"def",
"generate_random_sparsity_v2",
"(",
"model",
")",
":",
"cfg_list",
"=",
"[",
"]",
"for",
"name",
",",
"module",
"in",
"model",
".",
"named_modules",
"(",
")",
":",
"if",
"isinstance",
"(",
"module",
",",
"nn",
".",
"Conv2d",
")",
":",
"if",
"np"... | [
131,
0
] | [
142,
19
] | python | en | ['en', 'error', 'th'] | False |
TestVultr.setUp | (self) | Initialize values for this test case class. | Initialize values for this test case class. | def setUp(self):
"""Initialize values for this test case class."""
self.hass = get_test_home_assistant()
self.config = VALID_CONFIG
self.addCleanup(self.tear_down_cleanup) | [
"def",
"setUp",
"(",
"self",
")",
":",
"self",
".",
"hass",
"=",
"get_test_home_assistant",
"(",
")",
"self",
".",
"config",
"=",
"VALID_CONFIG",
"self",
".",
"addCleanup",
"(",
"self",
".",
"tear_down_cleanup",
")"
] | [
19,
4
] | [
23,
47
] | python | en | ['en', 'en', 'en'] | True |
TestVultr.tear_down_cleanup | (self) | Stop everything that we started. | Stop everything that we started. | def tear_down_cleanup(self):
"""Stop everything that we started."""
self.hass.stop() | [
"def",
"tear_down_cleanup",
"(",
"self",
")",
":",
"self",
".",
"hass",
".",
"stop",
"(",
")"
] | [
25,
4
] | [
27,
24
] | python | en | ['en', 'en', 'en'] | True |
TestVultr.test_setup | (self, mock) | Test successful setup. | Test successful setup. | def test_setup(self, mock):
"""Test successful setup."""
with patch(
"vultr.Vultr.server_list",
return_value=json.loads(load_fixture("vultr_server_list.json")),
):
response = vultr.setup(self.hass, self.config)
assert response | [
"def",
"test_setup",
"(",
"self",
",",
"mock",
")",
":",
"with",
"patch",
"(",
"\"vultr.Vultr.server_list\"",
",",
"return_value",
"=",
"json",
".",
"loads",
"(",
"load_fixture",
"(",
"\"vultr_server_list.json\"",
")",
")",
",",
")",
":",
"response",
"=",
"v... | [
30,
4
] | [
37,
23
] | python | en | ['en', 'ro', 'en'] | True |
TestVultr.test_setup_no_api_key | (self) | Test failed setup with missing API Key. | Test failed setup with missing API Key. | def test_setup_no_api_key(self):
"""Test failed setup with missing API Key."""
conf = deepcopy(self.config)
del conf["vultr"]["api_key"]
assert not setup.setup_component(self.hass, vultr.DOMAIN, conf) | [
"def",
"test_setup_no_api_key",
"(",
"self",
")",
":",
"conf",
"=",
"deepcopy",
"(",
"self",
".",
"config",
")",
"del",
"conf",
"[",
"\"vultr\"",
"]",
"[",
"\"api_key\"",
"]",
"assert",
"not",
"setup",
".",
"setup_component",
"(",
"self",
".",
"hass",
",... | [
39,
4
] | [
43,
71
] | python | en | ['en', 'haw', 'en'] | True |
get_service | (hass, config, discovery_info=None) | Get the BMW notification service. | Get the BMW notification service. | def get_service(hass, config, discovery_info=None):
"""Get the BMW notification service."""
accounts = hass.data[BMW_DOMAIN]
_LOGGER.debug("Found BMW accounts: %s", ", ".join([a.name for a in accounts]))
svc = BMWNotificationService()
svc.setup(accounts)
return svc | [
"def",
"get_service",
"(",
"hass",
",",
"config",
",",
"discovery_info",
"=",
"None",
")",
":",
"accounts",
"=",
"hass",
".",
"data",
"[",
"BMW_DOMAIN",
"]",
"_LOGGER",
".",
"debug",
"(",
"\"Found BMW accounts: %s\"",
",",
"\", \"",
".",
"join",
"(",
"[",
... | [
23,
0
] | [
29,
14
] | python | en | ['en', 'en', 'en'] | True |
BMWNotificationService.__init__ | (self) | Set up the notification service. | Set up the notification service. | def __init__(self):
"""Set up the notification service."""
self.targets = {} | [
"def",
"__init__",
"(",
"self",
")",
":",
"self",
".",
"targets",
"=",
"{",
"}"
] | [
35,
4
] | [
37,
25
] | python | en | ['en', 'en', 'en'] | True |
BMWNotificationService.setup | (self, accounts) | Get the BMW vehicle(s) for the account(s). | Get the BMW vehicle(s) for the account(s). | def setup(self, accounts):
"""Get the BMW vehicle(s) for the account(s)."""
for account in accounts:
self.targets.update({v.name: v for v in account.account.vehicles}) | [
"def",
"setup",
"(",
"self",
",",
"accounts",
")",
":",
"for",
"account",
"in",
"accounts",
":",
"self",
".",
"targets",
".",
"update",
"(",
"{",
"v",
".",
"name",
":",
"v",
"for",
"v",
"in",
"account",
".",
"account",
".",
"vehicles",
"}",
")"
] | [
39,
4
] | [
42,
78
] | python | en | ['en', 'en', 'en'] | True |
BMWNotificationService.send_message | (self, message="", **kwargs) | Send a message or POI to the car. | Send a message or POI to the car. | def send_message(self, message="", **kwargs):
"""Send a message or POI to the car."""
for _vehicle in kwargs[ATTR_TARGET]:
_LOGGER.debug("Sending message to %s", _vehicle.name)
# Extract params from data dict
title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)
... | [
"def",
"send_message",
"(",
"self",
",",
"message",
"=",
"\"\"",
",",
"*",
"*",
"kwargs",
")",
":",
"for",
"_vehicle",
"in",
"kwargs",
"[",
"ATTR_TARGET",
"]",
":",
"_LOGGER",
".",
"debug",
"(",
"\"Sending message to %s\"",
",",
"_vehicle",
".",
"name",
... | [
44,
4
] | [
73,
17
] | python | en | ['en', 'en', 'en'] | True |
ensure_state | (func) | Decorator that used to make sure sender process already started or not paused,
or ignore current function call. | Decorator that used to make sure sender process already started or not paused,
or ignore current function call. | def ensure_state(func):
"""Decorator that used to make sure sender process already started or not paused,
or ignore current function call."""
def _wrapper(*args, **kwargs):
client_instance: StreamitClient = args[0]
if not client_instance._is_started or client_instance._is_paused:
... | [
"def",
"ensure_state",
"(",
"func",
")",
":",
"def",
"_wrapper",
"(",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"client_instance",
":",
"StreamitClient",
"=",
"args",
"[",
"0",
"]",
"if",
"not",
"client_instance",
".",
"_is_started",
"or",
"client_... | [
13,
0
] | [
25,
19
] | python | en | ['en', 'en', 'en'] | True |
StreamitClient.pause | (self, is_parse=True) | Pause data collecting, will ignore following data.
Args:
is_parse (bool): Is stop collecting? True to stop, False to accept data. Default is True.
| Pause data collecting, will ignore following data. | def pause(self, is_parse=True):
"""Pause data collecting, will ignore following data.
Args:
is_parse (bool): Is stop collecting? True to stop, False to accept data. Default is True.
"""
self._is_paused = is_parse | [
"def",
"pause",
"(",
"self",
",",
"is_parse",
"=",
"True",
")",
":",
"self",
".",
"_is_paused",
"=",
"is_parse"
] | [
50,
4
] | [
56,
34
] | python | en | ['en', 'en', 'en'] | True |
StreamitClient.info | (self, scenario: str, topology: str, durations: int, **kwargs) | Send information about current experiment, used to store into 'maro.experiments' table.
Args:
scenario (str): Scenario name of current experiment.
topology (str): Topology name of current scenario.
durations (int): Durations of each episode.
kwargs (dict): Additi... | Send information about current experiment, used to store into 'maro.experiments' table. | def info(self, scenario: str, topology: str, durations: int, **kwargs):
"""Send information about current experiment, used to store into 'maro.experiments' table.
Args:
scenario (str): Scenario name of current experiment.
topology (str): Topology name of current scenario.
... | [
"def",
"info",
"(",
"self",
",",
"scenario",
":",
"str",
",",
"topology",
":",
"str",
",",
"durations",
":",
"int",
",",
"*",
"*",
"kwargs",
")",
":",
"# TODO: maybe it is better make it as parmater of with statement, so we can accept more info.",
"self",
".",
"_put... | [
59,
4
] | [
69,
82
] | python | en | ['en', 'en', 'en'] | True |
StreamitClient.tick | (self, tick: int) | Update current tick.
Args:
tick (int): Current tick.
| Update current tick. | def tick(self, tick: int):
"""Update current tick.
Args:
tick (int): Current tick.
"""
self._cur_tick = tick
self._put(MessageType.Tick, tick) | [
"def",
"tick",
"(",
"self",
",",
"tick",
":",
"int",
")",
":",
"self",
".",
"_cur_tick",
"=",
"tick",
"self",
".",
"_put",
"(",
"MessageType",
".",
"Tick",
",",
"tick",
")"
] | [
72,
4
] | [
80,
41
] | python | co | ['ro', 'co', 'en'] | False |
StreamitClient.episode | (self, episode: int) | Update current episode.
Args:
episode (int): Current episode.
| Update current episode. | def episode(self, episode: int):
"""Update current episode.
Args:
episode (int): Current episode.
"""
self._cur_episode = episode
self._put(MessageType.Episode, episode) | [
"def",
"episode",
"(",
"self",
",",
"episode",
":",
"int",
")",
":",
"self",
".",
"_cur_episode",
"=",
"episode",
"self",
".",
"_put",
"(",
"MessageType",
".",
"Episode",
",",
"episode",
")"
] | [
83,
4
] | [
91,
47
] | python | co | ['ro', 'co', 'en'] | False |
StreamitClient.data | (self, category: str, **kwargs) | Send data for specified category.
Examples:
streamit.data("my_category", name="user_name", age=10)
Args:
category (str): Category name of current data collection.
kwargs (dict): Named data to send of current category.
| Send data for specified category. | def data(self, category: str, **kwargs):
"""Send data for specified category.
Examples:
streamit.data("my_category", name="user_name", age=10)
Args:
category (str): Category name of current data collection.
kwargs (dict): Named data to send of current catego... | [
"def",
"data",
"(",
"self",
",",
"category",
":",
"str",
",",
"*",
"*",
"kwargs",
")",
":",
"self",
".",
"_put",
"(",
"MessageType",
".",
"Data",
",",
"(",
"category",
",",
"kwargs",
")",
")"
] | [
94,
4
] | [
104,
55
] | python | en | ['en', 'en', 'en'] | True |
StreamitClient.complex | (self, category: str, value: dict) | This method will split value dictionary into small tuple like items, first field is JsonPath like path to
identify the fields, second is the value, then fill in a table. Usually used to send a json or yaml content.
NOTE: This method is not suite for too big data, we will have a upload function later.
... | This method will split value dictionary into small tuple like items, first field is JsonPath like path to
identify the fields, second is the value, then fill in a table. Usually used to send a json or yaml content. | def complex(self, category: str, value: dict):
"""This method will split value dictionary into small tuple like items, first field is JsonPath like path to
identify the fields, second is the value, then fill in a table. Usually used to send a json or yaml content.
NOTE: This method is not suite... | [
"def",
"complex",
"(",
"self",
",",
"category",
":",
"str",
",",
"value",
":",
"dict",
")",
":",
"items",
"=",
"[",
"]",
"# (path, item) tuples.",
"stack",
"=",
"[",
"(",
"\"$\"",
",",
"value",
")",
"]",
"# Do splitting and converting.",
"while",
"len",
... | [
107,
4
] | [
152,
57
] | python | en | ['en', 'en', 'en'] | True |
StreamitClient.close | (self) | Close current client connection. | Close current client connection. | def close(self):
"""Close current client connection."""
if self._is_started and self._sender is not None and self._sender.is_alive():
# Send a close command and wait for stop.
self._put(MessageType.Close, None)
self._sender.join()
self._is_started = Fals... | [
"def",
"close",
"(",
"self",
")",
":",
"if",
"self",
".",
"_is_started",
"and",
"self",
".",
"_sender",
"is",
"not",
"None",
"and",
"self",
".",
"_sender",
".",
"is_alive",
"(",
")",
":",
"# Send a close command and wait for stop.",
"self",
".",
"_put",
"(... | [
154,
4
] | [
162,
36
] | python | en | ['en', 'fr', 'en'] | True |
StreamitClient._put | (self, msg_type: MessageType, data: object) | Put data to queue to process in sender process.
Args:
msg_type (MessageType): Type of current message.
data (object): Any data can be pickled.
| Put data to queue to process in sender process. | def _put(self, msg_type: MessageType, data: object):
"""Put data to queue to process in sender process.
Args:
msg_type (MessageType): Type of current message.
data (object): Any data can be pickled.
"""
self._data_queue.put((msg_type, data)) | [
"def",
"_put",
"(",
"self",
",",
"msg_type",
":",
"MessageType",
",",
"data",
":",
"object",
")",
":",
"self",
".",
"_data_queue",
".",
"put",
"(",
"(",
"msg_type",
",",
"data",
")",
")"
] | [
164,
4
] | [
171,
46
] | python | en | ['en', 'en', 'en'] | True |
StreamitClient._start | (self) | Start sender process, then we are ready to go. | Start sender process, then we are ready to go. | def _start(self):
"""Start sender process, then we are ready to go."""
self._sender = StreamitSender(self._data_queue, self._experiment_name, self._host)
try:
self._sender.start()
self._is_started = True
except Exception:
print("Fail to start streami... | [
"def",
"_start",
"(",
"self",
")",
":",
"self",
".",
"_sender",
"=",
"StreamitSender",
"(",
"self",
".",
"_data_queue",
",",
"self",
".",
"_experiment_name",
",",
"self",
".",
"_host",
")",
"try",
":",
"self",
".",
"_sender",
".",
"start",
"(",
")",
... | [
173,
4
] | [
182,
51
] | python | en | ['en', 'en', 'en'] | True |
StreamitClient.__enter__ | (self) | Support with statement. | Support with statement. | def __enter__(self):
"""Support with statement."""
self._start()
return self | [
"def",
"__enter__",
"(",
"self",
")",
":",
"self",
".",
"_start",
"(",
")",
"return",
"self"
] | [
190,
4
] | [
194,
19
] | python | en | ['en', 'en', 'en'] | True |
StreamitClient.__exit__ | (self, exc_type, exc_value, traceback) | Stop after exit with statement. | Stop after exit with statement. | def __exit__(self, exc_type, exc_value, traceback):
"""Stop after exit with statement."""
self.close() | [
"def",
"__exit__",
"(",
"self",
",",
"exc_type",
",",
"exc_value",
",",
"traceback",
")",
":",
"self",
".",
"close",
"(",
")"
] | [
196,
4
] | [
198,
20
] | python | en | ['en', 'en', 'en'] | True |
test_setup_demo_platform | (hass) | Test setup. | Test setup. | async def test_setup_demo_platform(hass):
"""Test setup."""
mock = MagicMock()
add_entities = mock.MagicMock()
await demo.async_setup_platform(hass, {}, add_entities)
assert add_entities.call_count == 1 | [
"async",
"def",
"test_setup_demo_platform",
"(",
"hass",
")",
":",
"mock",
"=",
"MagicMock",
"(",
")",
"add_entities",
"=",
"mock",
".",
"MagicMock",
"(",
")",
"await",
"demo",
".",
"async_setup_platform",
"(",
"hass",
",",
"{",
"}",
",",
"add_entities",
"... | [
26,
0
] | [
31,
39
] | python | en | ['en', 'haw', 'en'] | False |
test_arm_home_no_pending | (hass) | Test arm home method. | Test arm home method. | async def test_arm_home_no_pending(hass):
"""Test arm home method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"code": CODE,
... | [
"async",
"def",
"test_arm_home_no_pending",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"name\"",
... | [
34,
0
] | [
57,
69
] | python | en | ['en', 'be', 'en'] | True |
test_arm_home_no_pending_when_code_not_req | (hass) | Test arm home method. | Test arm home method. | async def test_arm_home_no_pending_when_code_not_req(hass):
"""Test arm home method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"code... | [
"async",
"def",
"test_arm_home_no_pending_when_code_not_req",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
"... | [
60,
0
] | [
84,
69
] | python | en | ['en', 'be', 'en'] | True |
test_arm_home_with_pending | (hass) | Test arm home method. | Test arm home method. | async def test_arm_home_with_pending(hass):
"""Test arm home method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"code": CODE,
... | [
"async",
"def",
"test_arm_home_with_pending",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"name\""... | [
87,
0
] | [
124,
48
] | python | en | ['en', 'be', 'en'] | True |
test_arm_home_with_invalid_code | (hass) | Attempt to arm home without a valid code. | Attempt to arm home without a valid code. | async def test_arm_home_with_invalid_code(hass):
"""Attempt to arm home without a valid code."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
... | [
"async",
"def",
"test_arm_home_with_invalid_code",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"na... | [
127,
0
] | [
150,
67
] | python | en | ['en', 'en', 'en'] | True |
test_arm_away_no_pending | (hass) | Test arm home method. | Test arm home method. | async def test_arm_away_no_pending(hass):
"""Test arm home method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"code": CODE,
... | [
"async",
"def",
"test_arm_away_no_pending",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"name\"",
... | [
153,
0
] | [
176,
69
] | python | en | ['en', 'be', 'en'] | True |
test_arm_away_no_pending_when_code_not_req | (hass) | Test arm home method. | Test arm home method. | async def test_arm_away_no_pending_when_code_not_req(hass):
"""Test arm home method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"code... | [
"async",
"def",
"test_arm_away_no_pending_when_code_not_req",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
"... | [
179,
0
] | [
203,
69
] | python | en | ['en', 'be', 'en'] | True |
test_arm_home_with_template_code | (hass) | Attempt to arm with a template-based code. | Attempt to arm with a template-based code. | async def test_arm_home_with_template_code(hass):
"""Attempt to arm with a template-based code."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
... | [
"async",
"def",
"test_arm_home_with_template_code",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"n... | [
206,
0
] | [
230,
48
] | python | en | ['en', 'en', 'en'] | True |
test_arm_away_with_pending | (hass) | Test arm home method. | Test arm home method. | async def test_arm_away_with_pending(hass):
"""Test arm home method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"code": CODE,
... | [
"async",
"def",
"test_arm_away_with_pending",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"name\""... | [
233,
0
] | [
270,
48
] | python | en | ['en', 'be', 'en'] | True |
test_arm_away_with_invalid_code | (hass) | Attempt to arm away without a valid code. | Attempt to arm away without a valid code. | async def test_arm_away_with_invalid_code(hass):
"""Attempt to arm away without a valid code."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
... | [
"async",
"def",
"test_arm_away_with_invalid_code",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"na... | [
273,
0
] | [
296,
67
] | python | en | ['en', 'en', 'en'] | True |
test_arm_night_no_pending | (hass) | Test arm night method. | Test arm night method. | async def test_arm_night_no_pending(hass):
"""Test arm night method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"code": CODE,
... | [
"async",
"def",
"test_arm_night_no_pending",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"name\"",... | [
299,
0
] | [
322,
70
] | python | en | ['en', 'et', 'en'] | True |
test_arm_night_no_pending_when_code_not_req | (hass) | Test arm night method. | Test arm night method. | async def test_arm_night_no_pending_when_code_not_req(hass):
"""Test arm night method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"co... | [
"async",
"def",
"test_arm_night_no_pending_when_code_not_req",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
... | [
325,
0
] | [
349,
70
] | python | en | ['en', 'et', 'en'] | True |
test_arm_night_with_pending | (hass) | Test arm night method. | Test arm night method. | async def test_arm_night_with_pending(hass):
"""Test arm night method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"code": CODE,
... | [
"async",
"def",
"test_arm_night_with_pending",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"name\"... | [
352,
0
] | [
394,
70
] | python | en | ['en', 'et', 'en'] | True |
test_arm_night_with_invalid_code | (hass) | Attempt to night home without a valid code. | Attempt to night home without a valid code. | async def test_arm_night_with_invalid_code(hass):
"""Attempt to night home without a valid code."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
... | [
"async",
"def",
"test_arm_night_with_invalid_code",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"n... | [
397,
0
] | [
420,
67
] | python | en | ['en', 'en', 'en'] | True |
test_trigger_no_pending | (hass) | Test triggering when no pending submitted method. | Test triggering when no pending submitted method. | async def test_trigger_no_pending(hass):
"""Test triggering when no pending submitted method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
... | [
"async",
"def",
"test_trigger_no_pending",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"name\"",
... | [
423,
0
] | [
455,
68
] | python | en | ['en', 'en', 'en'] | True |
test_trigger_with_delay | (hass) | Test trigger method and switch from pending to triggered. | Test trigger method and switch from pending to triggered. | async def test_trigger_with_delay(hass):
"""Test trigger method and switch from pending to triggered."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
... | [
"async",
"def",
"test_trigger_with_delay",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"name\"",
... | [
458,
0
] | [
499,
47
] | python | en | ['en', 'en', 'en'] | True |
test_trigger_zero_trigger_time | (hass) | Test disabled trigger. | Test disabled trigger. | async def test_trigger_zero_trigger_time(hass):
"""Test disabled trigger."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"arming_time": 0... | [
"async",
"def",
"test_trigger_zero_trigger_time",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"nam... | [
502,
0
] | [
525,
67
] | python | en | ['en', 'da', 'en'] | True |
test_trigger_zero_trigger_time_with_pending | (hass) | Test disabled trigger. | Test disabled trigger. | async def test_trigger_zero_trigger_time_with_pending(hass):
"""Test disabled trigger."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"ar... | [
"async",
"def",
"test_trigger_zero_trigger_time_with_pending",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
... | [
528,
0
] | [
551,
67
] | python | en | ['en', 'da', 'en'] | True |
test_trigger_with_pending | (hass) | Test arm home method. | Test arm home method. | async def test_trigger_with_pending(hass):
"""Test arm home method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"delay_time": 2,
... | [
"async",
"def",
"test_trigger_with_pending",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"name\"",... | [
554,
0
] | [
602,
46
] | python | en | ['en', 'be', 'en'] | True |
test_trigger_with_unused_specific_delay | (hass) | Test trigger method and switch from pending to triggered. | Test trigger method and switch from pending to triggered. | async def test_trigger_with_unused_specific_delay(hass):
"""Test trigger method and switch from pending to triggered."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"nam... | [
"async",
"def",
"test_trigger_with_unused_specific_delay",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",... | [
605,
0
] | [
647,
47
] | python | en | ['en', 'en', 'en'] | True |
test_trigger_with_specific_delay | (hass) | Test trigger method and switch from pending to triggered. | Test trigger method and switch from pending to triggered. | async def test_trigger_with_specific_delay(hass):
"""Test trigger method and switch from pending to triggered."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "te... | [
"async",
"def",
"test_trigger_with_specific_delay",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"n... | [
650,
0
] | [
692,
47
] | python | en | ['en', 'en', 'en'] | True |
test_trigger_with_pending_and_delay | (hass) | Test trigger method and switch from pending to triggered. | Test trigger method and switch from pending to triggered. | async def test_trigger_with_pending_and_delay(hass):
"""Test trigger method and switch from pending to triggered."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": ... | [
"async",
"def",
"test_trigger_with_pending_and_delay",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"... | [
695,
0
] | [
748,
47
] | python | en | ['en', 'en', 'en'] | True |
test_trigger_with_pending_and_specific_delay | (hass) | Test trigger method and switch from pending to triggered. | Test trigger method and switch from pending to triggered. | async def test_trigger_with_pending_and_specific_delay(hass):
"""Test trigger method and switch from pending to triggered."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
... | [
"async",
"def",
"test_trigger_with_pending_and_specific_delay",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
... | [
751,
0
] | [
805,
47
] | python | en | ['en', 'en', 'en'] | True |
test_armed_home_with_specific_pending | (hass) | Test arm home method. | Test arm home method. | async def test_armed_home_with_specific_pending(hass):
"""Test arm home method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"arming_ti... | [
"async",
"def",
"test_armed_home_with_specific_pending",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
... | [
808,
0
] | [
838,
69
] | python | en | ['en', 'be', 'en'] | True |
test_armed_away_with_specific_pending | (hass) | Test arm home method. | Test arm home method. | async def test_armed_away_with_specific_pending(hass):
"""Test arm home method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"arming_ti... | [
"async",
"def",
"test_armed_away_with_specific_pending",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
... | [
841,
0
] | [
871,
69
] | python | en | ['en', 'be', 'en'] | True |
test_armed_night_with_specific_pending | (hass) | Test arm home method. | Test arm home method. | async def test_armed_night_with_specific_pending(hass):
"""Test arm home method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"arming_t... | [
"async",
"def",
"test_armed_night_with_specific_pending",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
... | [
874,
0
] | [
904,
70
] | python | en | ['en', 'be', 'en'] | True |
test_trigger_with_specific_pending | (hass) | Test arm home method. | Test arm home method. | async def test_trigger_with_specific_pending(hass):
"""Test arm home method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"delay_time":... | [
"async",
"def",
"test_trigger_with_specific_pending",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\... | [
907,
0
] | [
949,
67
] | python | en | ['en', 'be', 'en'] | True |
test_trigger_with_disarm_after_trigger | (hass) | Test disarm after trigger. | Test disarm after trigger. | async def test_trigger_with_disarm_after_trigger(hass):
"""Test disarm after trigger."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"tri... | [
"async",
"def",
"test_trigger_with_disarm_after_trigger",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
... | [
952,
0
] | [
985,
67
] | python | da | ['da', 'da', 'en'] | True |
test_trigger_with_zero_specific_trigger_time | (hass) | Test trigger method. | Test trigger method. | async def test_trigger_with_zero_specific_trigger_time(hass):
"""Test trigger method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"tri... | [
"async",
"def",
"test_trigger_with_zero_specific_trigger_time",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
... | [
988,
0
] | [
1012,
67
] | python | da | ['da', 'da', 'en'] | True |
test_trigger_with_unused_zero_specific_trigger_time | (hass) | Test disarm after trigger. | Test disarm after trigger. | async def test_trigger_with_unused_zero_specific_trigger_time(hass):
"""Test disarm after trigger."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
... | [
"async",
"def",
"test_trigger_with_unused_zero_specific_trigger_time",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manua... | [
1015,
0
] | [
1049,
67
] | python | da | ['da', 'da', 'en'] | True |
test_trigger_with_specific_trigger_time | (hass) | Test disarm after trigger. | Test disarm after trigger. | async def test_trigger_with_specific_trigger_time(hass):
"""Test disarm after trigger."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"di... | [
"async",
"def",
"test_trigger_with_specific_trigger_time",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",... | [
1052,
0
] | [
1085,
67
] | python | da | ['da', 'da', 'en'] | True |
test_trigger_with_no_disarm_after_trigger | (hass) | Test disarm after trigger. | Test disarm after trigger. | async def test_trigger_with_no_disarm_after_trigger(hass):
"""Test disarm after trigger."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"... | [
"async",
"def",
"test_trigger_with_no_disarm_after_trigger",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",... | [
1088,
0
] | [
1126,
69
] | python | da | ['da', 'da', 'en'] | True |
test_back_to_back_trigger_with_no_disarm_after_trigger | (hass) | Test disarm after trigger. | Test disarm after trigger. | async def test_back_to_back_trigger_with_no_disarm_after_trigger(hass):
"""Test disarm after trigger."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
... | [
"async",
"def",
"test_back_to_back_trigger_with_no_disarm_after_trigger",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"ma... | [
1129,
0
] | [
1181,
69
] | python | da | ['da', 'da', 'en'] | True |
test_disarm_while_pending_trigger | (hass) | Test disarming while pending state. | Test disarming while pending state. | async def test_disarm_while_pending_trigger(hass):
"""Test disarming while pending state."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
... | [
"async",
"def",
"test_disarm_while_pending_trigger",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"... | [
1184,
0
] | [
1220,
67
] | python | en | ['en', 'en', 'en'] | True |
test_disarm_during_trigger_with_invalid_code | (hass) | Test disarming while code is invalid. | Test disarming while code is invalid. | async def test_disarm_during_trigger_with_invalid_code(hass):
"""Test disarming while code is invalid."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
... | [
"async",
"def",
"test_disarm_during_trigger_with_invalid_code",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
... | [
1223,
0
] | [
1260,
68
] | python | en | ['en', 'en', 'en'] | True |
test_disarm_with_template_code | (hass) | Attempt to disarm with a valid or invalid template-based code. | Attempt to disarm with a valid or invalid template-based code. | async def test_disarm_with_template_code(hass):
"""Attempt to disarm with a valid or invalid template-based code."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": ... | [
"async",
"def",
"test_disarm_with_template_code",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"nam... | [
1263,
0
] | [
1297,
46
] | python | en | ['en', 'en', 'en'] | True |
test_arm_custom_bypass_no_pending | (hass) | Test arm custom bypass method. | Test arm custom bypass method. | async def test_arm_custom_bypass_no_pending(hass):
"""Test arm custom bypass method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"code... | [
"async",
"def",
"test_arm_custom_bypass_no_pending",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"\"... | [
1300,
0
] | [
1323,
78
] | python | en | ['en', 'ga', 'en'] | True |
test_arm_custom_bypass_no_pending_when_code_not_req | (hass) | Test arm custom bypass method. | Test arm custom bypass method. | async def test_arm_custom_bypass_no_pending_when_code_not_req(hass):
"""Test arm custom bypass method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
... | [
"async",
"def",
"test_arm_custom_bypass_no_pending_when_code_not_req",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manua... | [
1326,
0
] | [
1350,
78
] | python | en | ['en', 'ga', 'en'] | True |
test_arm_custom_bypass_with_pending | (hass) | Test arm custom bypass method. | Test arm custom bypass method. | async def test_arm_custom_bypass_with_pending(hass):
"""Test arm custom bypass method."""
assert await async_setup_component(
hass,
alarm_control_panel.DOMAIN,
{
"alarm_control_panel": {
"platform": "manual",
"name": "test",
"co... | [
"async",
"def",
"test_arm_custom_bypass_with_pending",
"(",
"hass",
")",
":",
"assert",
"await",
"async_setup_component",
"(",
"hass",
",",
"alarm_control_panel",
".",
"DOMAIN",
",",
"{",
"\"alarm_control_panel\"",
":",
"{",
"\"platform\"",
":",
"\"manual\"",
",",
"... | [
1353,
0
] | [
1390,
57
] | python | en | ['en', 'ga', 'en'] | True |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.