Skip to content

Commit

Permalink
Fix base class
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Feb 4, 2024
1 parent 0249f3d commit e117577
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/teslemetry/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from .const import DOMAIN
from .entity import (
TeslemetryVehicleEntity,
TeslemetryEnergyInfoEntity
)
from .models import TeslemetryVehicleData, TeslemetryEnergyData

Expand Down Expand Up @@ -169,7 +170,7 @@ async def async_turn_off(self, **kwargs: Any) -> None:
self.set((self.entity_description.key, False))


class TeslemetryEnergyInfoSwitchEntity(TeslemetryVehicleEntity, SwitchEntity):
class TeslemetryEnergyInfoSwitchEntity(TeslemetryEnergyInfoEntity, SwitchEntity):
"""Base class for Teslemetry Switch."""

_attr_device_class = SwitchDeviceClass.SWITCH
Expand Down

0 comments on commit e117577

Please sign in to comment.