Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Trunk not closing #868

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions custom_components/tesla_custom/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class TeslaCarTrunk(TeslaCarEntity, CoverEntity):
type = "trunk"
_attr_device_class = CoverDeviceClass.DOOR
_attr_icon = "mdi:car-back"
_attr_supported_features = CoverEntityFeature.OPEN | CoverEntityFeature.CLOSE

async def async_close_cover(self, **kwargs):
"""Send close cover command."""
Expand All @@ -120,14 +121,6 @@ def is_closed(self):
"""Return True if trunk is closed."""
return self._car.is_trunk_closed

@property
def supported_features(self) -> int:
"""Return supported features."""
if self._car.powered_lift_gate:
alandtse marked this conversation as resolved.
Show resolved Hide resolved
return CoverEntityFeature.OPEN | CoverEntityFeature.CLOSE

return CoverEntityFeature.OPEN


class TeslaCarWindows(TeslaCarEntity, CoverEntity):
"""Representation of a Tesla car window cover."""
Expand Down
Loading