Skip to content

Commit

Permalink
Fix commands on streaming entities
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Dec 17, 2024
1 parent 100437d commit cff96f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/teslemetry/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def __init__(
self.streaming_key = streaming_key
self.vehicle = data

self.api = data.api
self.stream = data.stream
self.vin = data.vin
self.add_field = data.stream.get_vehicle(self.vin).add_field
Expand Down Expand Up @@ -102,8 +103,9 @@ def __init__(
) -> None:
"""Initialize common aspects of a Teslemetry entity."""
self.streaming_keys = streaming_keys
self.vehicle = data

self._attr_translation_key = key
self.api = data.api
self.stream = data.stream
self.vin = data.vin

Expand Down

0 comments on commit cff96f9

Please sign in to comment.