core/homeassistant/helpers
Erik Montnemery 7e4be921a8
Add helper to get an entity's supported features (#48825)
* Add helper to check entity's supported features

* Move get_supported_features to helpers/entity.py, add tests

* Fix error handling and improve tests
2021-04-10 08:19:16 +02:00
..
__init__.py Update typing 16 (#48087) 2021-03-18 22:58:19 +01:00
aiohttp_client.py Detach aiohttp.ClientSession created by config entry setup on unload (#48908) 2021-04-09 10:14:33 -07:00
area_registry.py Remove HomeAssistantType alias from helpers (#48400) 2021-03-27 12:55:24 +01:00
check_config.py Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
collection.py Optimize storage collection entity operations with asyncio.gather (#48352) 2021-04-03 23:35:33 -10:00
condition.py Update pylint to 2.7.3 (#48488) 2021-03-29 18:02:56 -10:00
config_entry_flow.py Remove HomeAssistantType alias from helpers (#48400) 2021-03-27 12:55:24 +01:00
config_entry_oauth2_flow.py Fix device discovery of OAuth2 config flows (#48326) 2021-03-25 10:35:01 -07:00
config_validation.py Don't get code_context when calling inspect.stack (#48849) 2021-04-09 07:26:09 +02:00
data_entry_flow.py Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
debounce.py Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
deprecation.py Don't get code_context when calling inspect.stack (#48849) 2021-04-09 07:26:09 +02:00
device_registry.py Remove HomeAssistantType alias from helpers (#48400) 2021-03-27 12:55:24 +01:00
discovery.py Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
dispatcher.py Remove HomeAssistantType alias from helpers (#48400) 2021-03-27 12:55:24 +01:00
entity.py Add helper to get an entity's supported features (#48825) 2021-04-10 08:19:16 +02:00
entity_component.py Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
entity_platform.py Raise ConfigEntryAuthFailed during setup or coordinator update to start reauth (#48962) 2021-04-09 19:41:29 -10:00
entity_registry.py Remove HomeAssistantType alias from helpers (#48400) 2021-03-27 12:55:24 +01:00
entity_values.py Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
entityfilter.py Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
event.py Don't log template errors from developer tool (#48933) 2021-04-09 12:10:02 -07:00
frame.py Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
httpx_client.py Update pylint to 2.7.3 (#48488) 2021-03-29 18:02:56 -10:00
icon.py Bump pyupgrade to 2.12.0 (#48943) 2021-04-09 09:58:27 -07:00
instance_id.py Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
integration_platform.py Add logbook platforms (#37078) 2020-06-24 18:14:50 -07:00
intent.py Remove HomeAssistantType alias from helpers (#48400) 2021-03-27 12:55:24 +01:00
json.py Add custom JSONEncoder for subscribe_trigger WS endpoint (#48664) 2021-04-09 20:47:10 -07:00
location.py Bump pyupgrade to 2.12.0 (#48943) 2021-04-09 09:58:27 -07:00
logging.py Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
network.py Use contextlib.suppress where possible (#48189) 2021-03-23 14:36:43 +01:00
ratelimit.py Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
reload.py Remove HomeAssistantType alias from helpers (#48400) 2021-03-27 12:55:24 +01:00
restore_state.py Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
script.py Include script script_execution in script and automation traces (#48576) 2021-04-01 09:42:23 -07:00
script_variables.py Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
selector.py Update pylint to 2.7.3 (#48488) 2021-03-29 18:02:56 -10:00
service.py Allow templatable service target to support scripts (#48600) 2021-04-01 13:10:01 -07:00
signal.py Sort imports according to PEP8 for 'homeassistant' folder (#29789) 2019-12-09 16:42:10 +01:00
significant_change.py Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
singleton.py Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
state.py Remove HomeAssistantType alias from helpers (#48400) 2021-03-27 12:55:24 +01:00
storage.py Use contextlib.suppress where possible (#48189) 2021-03-23 14:36:43 +01:00
sun.py Upgrade Astral to 2.2 (#48573) 2021-04-02 00:29:08 +02:00
system_info.py Remove HomeAssistantType alias from helpers (#48400) 2021-03-27 12:55:24 +01:00
temperature.py Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
template.py Don't log template errors from developer tool (#48933) 2021-04-09 12:10:02 -07:00
trace.py Include script script_execution in script and automation traces (#48576) 2021-04-01 09:42:23 -07:00
translation.py Remove HomeAssistantType alias from helpers (#48400) 2021-03-27 12:55:24 +01:00
trigger.py Add id to automation triggers (#48464) 2021-03-31 14:56:04 +02:00
typing.py Update pylint to 2.7.3 (#48488) 2021-03-29 18:02:56 -10:00
update_coordinator.py Raise ConfigEntryAuthFailed during setup or coordinator update to start reauth (#48962) 2021-04-09 19:41:29 -10:00