Skip to content

Commit

Permalink
Fix for 2025.1 version of Home Assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
bkbilly authored Jan 5, 2024
1 parent ed5724a commit 5b8cc66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/tpms_ble/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
)
from homeassistant.const import (
SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
PRESSURE_BAR,
PERCENTAGE,
TEMP_CELSIUS,
UnitOfPressure,
UnitOfTemperature,
)
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity import EntityCategory
Expand All @@ -37,13 +37,13 @@
key=TPMSSensor.PRESSURE,
device_class=SensorDeviceClass.PRESSURE,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=PRESSURE_BAR,
native_unit_of_measurement=UnitOfPressure.BAR,
),
TPMSSensor.TEMPERATURE: SensorEntityDescription(
key=TPMSSensor.TEMPERATURE,
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
native_unit_of_measurement=TEMP_CELSIUS,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
),
TPMSSensor.BATTERY: SensorEntityDescription(
key=TPMSSensor.BATTERY,
Expand Down

0 comments on commit 5b8cc66

Please sign in to comment.