1 """SunWEG Sensor definitions for the String type."""
3 from __future__
import annotations
8 from .sensor_entity_description
import SunWEGSensorEntityDescription
10 STRING_SENSOR_TYPES: tuple[SunWEGSensorEntityDescription, ...] = (
14 api_variable_key=
"_voltage",
15 native_unit_of_measurement=UnitOfElectricPotential.VOLT,
16 device_class=SensorDeviceClass.VOLTAGE,
17 suggested_display_precision=2,
22 api_variable_key=
"_amperage",
23 native_unit_of_measurement=UnitOfElectricCurrent.AMPERE,
24 device_class=SensorDeviceClass.CURRENT,
25 suggested_display_precision=1,