Skip to content

Error while setting up toyota_na platform for sensor: 'unit' #166

Description

@vlad36N

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:455
integration: Sensor (documentation, issues)
First occurred: March 30, 2026 at 10:01:13 PM (1 occurrence)
Last logged: March 30, 2026 at 10:01:13 PM

Error while setting up toyota_na platform for sensor: 'unit'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 455, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/toyota_na/sensor.py", line 45, in async_setup_entry
cast(str, entity_config["unit"]),
~~~~~~~~~~~~~^^^^^^^^
KeyError: 'unit'

ha-toyota-na: v2.6.9
Installation method Home Assistant OS
Core 2026.3.4
Supervisor 2026.03.2
Operating System 17.1
Frontend 20260312.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions