1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-26 14:08:21 +00:00

Improve annotation styling (#118032)

This commit is contained in:
Marc Mueller
2024-05-24 15:05:53 +02:00
committed by GitHub
parent 2308ff2cbf
commit dd22ee3dac
24 changed files with 41 additions and 35 deletions

View File

@@ -833,7 +833,7 @@ def async_set_service_schema(
def _get_permissible_entity_candidates(
call: ServiceCall,
entities: dict[str, Entity],
entity_perms: None | (Callable[[str, str], bool]),
entity_perms: Callable[[str, str], bool] | None,
target_all_entities: bool,
all_referenced: set[str] | None,
) -> list[Entity]:
@@ -889,7 +889,7 @@ async def entity_service_call(
Calls all platforms simultaneously.
"""
entity_perms: None | (Callable[[str, str], bool]) = None
entity_perms: Callable[[str, str], bool] | None = None
return_response = call.return_response
if call.context.user_id: