Skip to content

Commit

Permalink
fix black
Browse files Browse the repository at this point in the history
  • Loading branch information
stickpin committed Jan 16, 2024
1 parent b37cca4 commit 2256216
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions volkswagencarnet/vw_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,13 @@ def __init__(
):
"""Init."""
super().__init__(
component="sensor", attr=attr, name=name, icon=icon, entity_type=entity_type, device_class=device_class, state_class=state_class
component="sensor",
attr=attr,
name=name,
icon=icon,
entity_type=entity_type,
device_class=device_class,
state_class=state_class,
)
self.unit = unit
self.convert = False
Expand Down Expand Up @@ -652,7 +658,10 @@ def attributes(self) -> dict:
class BatteryClimatisation(Switch):
def __init__(self):
super().__init__(
attr="climatisation_without_external_power", name="Climatisation from battery", icon="mdi:power-plug", entity_type="config"
attr="climatisation_without_external_power",
name="Climatisation from battery",
icon="mdi:power-plug",
entity_type="config",
)

@property
Expand Down Expand Up @@ -747,7 +756,9 @@ class RequestResults(Sensor):

def __init__(self):
"""Init."""
super().__init__(attr="request_results", name="Request results", icon="mdi:chat-alert", unit="", entity_type="diag")
super().__init__(
attr="request_results", name="Request results", icon="mdi:chat-alert", unit="", entity_type="diag"
)

@property
def state(self) -> Any:
Expand Down Expand Up @@ -1137,7 +1148,12 @@ def create_instruments():
reverse_state=True,
),
BinarySensor(attr="vehicle_moving", name="Vehicle Moving", device_class=VWDeviceClass.MOVING),
BinarySensor(attr="request_in_progress", name="Request in progress", device_class=VWDeviceClass.CONNECTIVITY, entity_type="diag"),
BinarySensor(
attr="request_in_progress",
name="Request in progress",
device_class=VWDeviceClass.CONNECTIVITY,
entity_type="diag",
),
]


Expand Down

0 comments on commit 2256216

Please sign in to comment.