mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Remove unused last_reset from Toon (#54798)
This commit is contained in:
parent
62015f5495
commit
cbff6a603d
@ -1,11 +1,7 @@
|
|||||||
"""Support for Toon sensors."""
|
"""Support for Toon sensors."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from homeassistant.components.sensor import (
|
from homeassistant.components.sensor import ATTR_STATE_CLASS, SensorEntity
|
||||||
ATTR_LAST_RESET,
|
|
||||||
ATTR_STATE_CLASS,
|
|
||||||
SensorEntity,
|
|
||||||
)
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
@ -127,7 +123,6 @@ class ToonSensor(ToonEntity, SensorEntity):
|
|||||||
ATTR_DEFAULT_ENABLED, True
|
ATTR_DEFAULT_ENABLED, True
|
||||||
)
|
)
|
||||||
self._attr_icon = sensor.get(ATTR_ICON)
|
self._attr_icon = sensor.get(ATTR_ICON)
|
||||||
self._attr_last_reset = sensor.get(ATTR_LAST_RESET)
|
|
||||||
self._attr_name = sensor[ATTR_NAME]
|
self._attr_name = sensor[ATTR_NAME]
|
||||||
self._attr_state_class = sensor.get(ATTR_STATE_CLASS)
|
self._attr_state_class = sensor.get(ATTR_STATE_CLASS)
|
||||||
self._attr_native_unit_of_measurement = sensor[ATTR_UNIT_OF_MEASUREMENT]
|
self._attr_native_unit_of_measurement = sensor[ATTR_UNIT_OF_MEASUREMENT]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user