Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
lichtteil committed Mar 14, 2024
2 parents 798c7d4 + b23b4e1 commit b70fee6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions custom_components/local_luftdaten/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
PERCENTAGE,
UnitOfPressure,
SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
TEMP_CELSIUS,
UnitOfTemperature,
)
from homeassistant.helpers.entity import EntityCategory

Expand Down Expand Up @@ -76,7 +76,7 @@
device_class=SensorDeviceClass.TEMPERATURE,
key=SENSOR_BME280_TEMPERATURE,
name='Temperature',
native_unit_of_measurement=TEMP_CELSIUS,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
),
SENSOR_BMP_PRESSURE: SensorEntityDescription(
Expand All @@ -90,14 +90,14 @@
device_class=SensorDeviceClass.TEMPERATURE,
key=SENSOR_BMP_TEMPERATURE,
name='Temperature',
native_unit_of_measurement=TEMP_CELSIUS,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
),
SENSOR_BMP280_TEMPERATURE: SensorEntityDescription(
device_class=SensorDeviceClass.TEMPERATURE,
key=SENSOR_BMP280_TEMPERATURE,
name='Temperature',
native_unit_of_measurement=TEMP_CELSIUS,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
),
SENSOR_BMP280_PRESSURE: SensorEntityDescription(
Expand All @@ -111,7 +111,7 @@
device_class=SensorDeviceClass.TEMPERATURE,
key=SENSOR_DS18B20_TEMPERATURE,
name='Temperature',
native_unit_of_measurement=TEMP_CELSIUS,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
),
SENSOR_HECA_HUMIDITY: SensorEntityDescription(
Expand All @@ -125,7 +125,7 @@
device_class=SensorDeviceClass.TEMPERATURE,
key=SENSOR_HECA_TEMPERATURE,
name='Temperature',
native_unit_of_measurement=TEMP_CELSIUS,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
),
SENSOR_HPM_P1: SensorEntityDescription(
Expand Down Expand Up @@ -153,7 +153,7 @@
device_class=SensorDeviceClass.TEMPERATURE,
key=SENSOR_HTU21D_TEMPERATURE,
name='Temperature',
native_unit_of_measurement=TEMP_CELSIUS,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
),
SENSOR_HUMIDITY: SensorEntityDescription(
Expand Down Expand Up @@ -209,7 +209,7 @@
device_class=SensorDeviceClass.TEMPERATURE,
key=SENSOR_SHT3X_TEMPERATURE,
name='Temperature',
native_unit_of_measurement=TEMP_CELSIUS,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
),
SENSOR_SPS30_P0: SensorEntityDescription(
Expand Down Expand Up @@ -288,7 +288,7 @@
device_class=SensorDeviceClass.TEMPERATURE,
key=SENSOR_TEMPERATURE,
name='Temperature',
native_unit_of_measurement=TEMP_CELSIUS,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
state_class=SensorStateClass.MEASUREMENT,
),
SENSOR_WIFI_SIGNAL: SensorEntityDescription(
Expand Down

0 comments on commit b70fee6

Please sign in to comment.