Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions homeassistant/components/goalzero/sensor.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
"""Support for Goal Zero Yeti Sensors."""
from __future__ import annotations

from homeassistant.components.sensor import (
ATTR_LAST_RESET,
ATTR_STATE_CLASS,
SensorEntity,
)
from homeassistant.components.sensor import ATTR_STATE_CLASS, SensorEntity
from homeassistant.const import (
ATTR_DEVICE_CLASS,
ATTR_NAME,
Expand Down Expand Up @@ -50,7 +46,6 @@ def __init__(self, api, coordinator, name, sensor_name, server_unique_id):
sensor = SENSOR_DICT[sensor_name]
self._attr_device_class = sensor.get(ATTR_DEVICE_CLASS)
self._attr_entity_registry_enabled_default = sensor.get(ATTR_DEFAULT_ENABLED)
self._attr_last_reset = sensor.get(ATTR_LAST_RESET)
self._attr_name = f"{name} {sensor.get(ATTR_NAME)}"
self._attr_native_unit_of_measurement = sensor.get(ATTR_UNIT_OF_MEASUREMENT)
self._attr_state_class = sensor.get(ATTR_STATE_CLASS)
Expand Down