hass-core/homeassistant/helpers
Raman Gupta 58e37435b3
Make more max lengths constants and add additional MaxLengthExceeded checks ()
* Add more MaxLengthExceeded checks

* remove some validations to reduce performance impact

* check length of generated entity ID

* dont check entity ID twice and use single context id length constant

* fix test

* add missing test
2021-05-25 19:58:01 +02:00
..
__init__.py Update typing syntax () 2021-04-20 17:40:41 +02:00
aiohttp_client.py Update typing syntax () 2021-04-20 17:40:41 +02:00
area_registry.py Update typing syntax () 2021-04-20 17:40:41 +02:00
check_config.py Enable mccabe complexity checks in flake8 () 2021-04-25 12:38:40 +02:00
collection.py Add missing return type in Core constructors () 2021-05-20 18:53:29 +03:00
condition.py Correct trace of condition actions () 2021-05-17 16:54:17 -07:00
config_entry_flow.py Fix typing in config flow helper () 2021-05-23 14:08:21 +02:00
config_entry_oauth2_flow.py Add missing return type in Core constructors () 2021-05-20 18:53:29 +03:00
config_validation.py Add typing to async_register_entity_service () 2021-05-03 14:22:38 +02:00
data_entry_flow.py Rename FlowResultDict to FlowResult () 2021-04-29 13:40:51 +02:00
debounce.py Add missing return type in Core constructors () 2021-05-20 18:53:29 +03:00
deprecation.py Don't get code_context when calling inspect.stack () 2021-04-09 07:26:09 +02:00
device_registry.py Type hint device registry identifiers as set of str 2-tuples () 2021-05-10 12:13:45 +02:00
discovery.py Update typing 02 () 2021-03-17 18:34:19 +01:00
dispatcher.py Remove HomeAssistantType alias from helpers () 2021-03-27 12:55:24 +01:00
entity.py Define entity attributes as entity class variables () 2021-05-22 09:13:50 -07:00
entity_component.py Add missing return type in Core constructors () 2021-05-20 18:53:29 +03:00
entity_platform.py Add missing return type in Core constructors () 2021-05-20 18:53:29 +03:00
entity_registry.py Make more max lengths constants and add additional MaxLengthExceeded checks () 2021-05-25 19:58:01 +02:00
entity_values.py Update typing syntax () 2021-04-20 17:40:41 +02:00
entityfilter.py Update typing syntax () 2021-04-20 17:40:41 +02:00
event.py Add missing return type in Core constructors () 2021-05-20 18:53:29 +03:00
frame.py Update typing 02 () 2021-03-17 18:34:19 +01:00
httpx_client.py Update pylint to 2.7.3 () 2021-03-29 18:02:56 -10:00
icon.py Bump pyupgrade to 2.12.0 () 2021-04-09 09:58:27 -07:00
instance_id.py Update typing 02 () 2021-03-17 18:34:19 +01:00
integration_platform.py Update typing syntax () 2021-04-20 17:40:41 +02:00
intent.py Update light intents to check supported_color_modes () 2021-05-14 14:23:29 -07:00
json.py Add custom JSONEncoder for subscribe_trigger WS endpoint () 2021-04-09 20:47:10 -07:00
location.py Update typing syntax () 2021-04-20 17:40:41 +02:00
logging.py Update typing syntax () 2021-04-20 17:40:41 +02:00
network.py Use contextlib.suppress where possible () 2021-03-23 14:36:43 +01:00
ratelimit.py Add missing return type in Core constructors () 2021-05-20 18:53:29 +03:00
recorder.py Prevent calling stop or restart services during db upgrade () 2021-04-12 17:18:38 -07:00
reload.py Add missing type hints in entity_platform () 2021-05-12 16:28:44 +02:00
restore_state.py Ensure restore state is not written after the stop event () 2021-04-17 09:03:18 +02:00
script.py Correct trace of condition actions () 2021-05-17 16:54:17 -07:00
script_variables.py Add missing return type in Core constructors () 2021-05-20 18:53:29 +03:00
selector.py Update pylint to 2.8.0 () 2021-04-24 14:39:24 -10:00
service.py Pylint fix () 2021-05-25 10:53:18 -07:00
signal.py Sort imports according to PEP8 for 'homeassistant' folder () 2019-12-09 16:42:10 +01:00
significant_change.py Update typing 02 () 2021-03-17 18:34:19 +01:00
singleton.py Update typing 02 () 2021-03-17 18:34:19 +01:00
state.py Update typing syntax () 2021-04-20 17:40:41 +02:00
storage.py Add missing return type in Core constructors () 2021-05-20 18:53:29 +03:00
sun.py Upgrade Astral to 2.2 () 2021-04-02 00:29:08 +02:00
system_info.py Remove HomeAssistantType alias from helpers () 2021-03-27 12:55:24 +01:00
temperature.py Update typing 02 () 2021-03-17 18:34:19 +01:00
template.py jinja2.contextfilter decorator renamed to pass_context () 2021-05-24 17:38:37 +02:00
trace.py Add missing return type in Core constructors () 2021-05-20 18:53:29 +03:00
translation.py Remove HomeAssistantType alias from helpers () 2021-03-27 12:55:24 +01:00
trigger.py Add id to automation triggers () 2021-03-31 14:56:04 +02:00
typing.py Remove ServiceCallType alias from codebase () 2021-05-02 00:15:27 +02:00
update_coordinator.py Add missing return type in Core constructors () 2021-05-20 18:53:29 +03:00