Skip to content

Commit 063df21

Browse files
committed
Remove last usage of entity_id
1 parent 22b5859 commit 063df21

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

homeassistant_api/models/domains.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ async def async_trigger(
626626
**service_data,
627627
)
628628

629-
def __call__(self, entity_id: Optional[str] = None, **service_data) -> Union[
629+
def __call__(self, **service_data) -> Union[
630630
Union[
631631
Tuple[State, ...],
632632
Tuple[Tuple[State, ...], dict[str, JSONType]],
@@ -648,7 +648,7 @@ def __call__(self, entity_id: Optional[str] = None, **service_data) -> Union[
648648
if inspect.iscoroutinefunction(
649649
caller := gc.get_referrers(parent_frame.f_code)[0]
650650
) or inspect.iscoroutine(caller):
651-
return self.async_trigger(entity_id=entity_id, **service_data)
651+
return self.async_trigger(**service_data)
652652
except IndexError: # pragma: no cover
653653
pass
654-
return self.trigger(entity_id=entity_id, **service_data)
654+
return self.trigger(**service_data)

0 commit comments

Comments
 (0)