mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add entities with no data in Tessie (#119550)
This commit is contained in:
parent
55134e23ea
commit
ecd61c6b6d
@ -170,7 +170,6 @@ async def async_setup_entry(
|
||||
TessieBinarySensorEntity(vehicle, description)
|
||||
for vehicle in data.vehicles
|
||||
for description in DESCRIPTIONS
|
||||
if description.key in vehicle.data
|
||||
)
|
||||
|
||||
|
||||
|
@ -91,7 +91,6 @@ async def async_setup_entry(
|
||||
TessieNumberEntity(vehicle, description)
|
||||
for vehicle in data.vehicles
|
||||
for description in DESCRIPTIONS
|
||||
if description.key in vehicle.data
|
||||
)
|
||||
|
||||
|
||||
|
@ -35,7 +35,7 @@ async def async_setup_entry(
|
||||
TessieSeatHeaterSelectEntity(vehicle, key)
|
||||
for vehicle in data.vehicles
|
||||
for key in SEAT_HEATERS
|
||||
if key in vehicle.data
|
||||
if key in vehicle.data # not all vehicles have rear center or third row
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user