Skip to content

Commit e94d494

Browse files
committed
test: remove unused device class assertion from battery SOC sensor tests
1 parent aee261e commit e94d494

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_sensor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pytest
2-
from homeassistant.components.sensor import SensorDeviceClass, SensorEntityDescription
2+
from homeassistant.components.sensor import SensorEntityDescription
33
from homeassistant.const import PERCENTAGE
44

55
from custom_components.solis_cloud_control.const import (
@@ -23,7 +23,6 @@ def battery_soc_sensor(mock_coordinator):
2323
class TestBatterySocSensor:
2424
def test_attributes(self, battery_soc_sensor):
2525
assert battery_soc_sensor.native_unit_of_measurement == PERCENTAGE
26-
assert battery_soc_sensor.device_class == SensorDeviceClass.BATTERY
2726

2827
@pytest.mark.parametrize(
2928
("value", "expected"),

0 commit comments

Comments
 (0)