Skip to content

Commit

Permalink
remove unused variable in setup_entry
Browse files Browse the repository at this point in the history
  • Loading branch information
cyr-ius committed Dec 28, 2023
1 parent 9cb6ee8 commit 1a073b5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions custom_components/audiconnect/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
"""Support for Audi Connect sensors."""
from __future__ import annotations

import logging

from homeassistant.components.binary_sensor import BinarySensorEntity , BinarySensorDeviceClass as dc
from homeassistant.components.binary_sensor import (
BinarySensorDeviceClass as dc,
BinarySensorEntity,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
Expand Down Expand Up @@ -268,7 +272,7 @@ async def async_setup_entry(

entities = []
for vin, vehicle in coordinator.data.items():
for name, data in vehicle.states.items():
for name in vehicle.states:
for description in SENSOR_TYPES:
if description.key == name:
entities.append(AudiBinarySensor(coordinator, vin, description))
Expand Down

0 comments on commit 1a073b5

Please sign in to comment.