We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aee261e commit e94d494Copy full SHA for e94d494
tests/test_sensor.py
@@ -1,5 +1,5 @@
1
import pytest
2
-from homeassistant.components.sensor import SensorDeviceClass, SensorEntityDescription
+from homeassistant.components.sensor import SensorEntityDescription
3
from homeassistant.const import PERCENTAGE
4
5
from custom_components.solis_cloud_control.const import (
@@ -23,7 +23,6 @@ def battery_soc_sensor(mock_coordinator):
23
class TestBatterySocSensor:
24
def test_attributes(self, battery_soc_sensor):
25
assert battery_soc_sensor.native_unit_of_measurement == PERCENTAGE
26
- assert battery_soc_sensor.device_class == SensorDeviceClass.BATTERY
27
28
@pytest.mark.parametrize(
29
("value", "expected"),
0 commit comments