Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion homeassistant/components/homematicip_cloud/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ class HomematicipAbsoluteHumiditySensor(HomematicipGenericEntity, SensorEntity):

_attr_device_class = SensorDeviceClass.ABSOLUTE_HUMIDITY
_attr_native_unit_of_measurement = CONCENTRATION_GRAMS_PER_CUBIC_METER
_attr_suggested_display_precision = 1
_attr_suggested_unit_of_measurement = CONCENTRATION_MILLIGRAMS_PER_CUBIC_METER
_attr_state_class = SensorStateClass.MEASUREMENT

Expand All @@ -636,7 +637,7 @@ def native_value(self) -> float | None:
if value is None or value == "":
return None

return round(value, 3)
return value


class HomematicipIlluminanceSensor(HomematicipGenericEntity, SensorEntity):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/lcn/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"iot_class": "local_polling",
"loggers": ["pypck"],
"quality_scale": "silver",
"requirements": ["pypck==0.9.10", "lcn-frontend==0.2.7"]
"requirements": ["pypck==0.9.11", "lcn-frontend==0.2.7"]
}
8 changes: 2 additions & 6 deletions homeassistant/components/liebherr/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@

from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import (
ConfigEntryAuthFailed,
ConfigEntryError,
ConfigEntryNotReady,
)
from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed

from .const import DOMAIN
Expand Down Expand Up @@ -57,7 +53,7 @@ async def _async_setup(self) -> None:
try:
await self.client.get_device(self.device_id)
except LiebherrAuthenticationError as err:
raise ConfigEntryError("Invalid API key") from err
raise ConfigEntryAuthFailed("Invalid API key") from err
except LiebherrConnectionError as err:
raise ConfigEntryNotReady(
f"Failed to connect to device {self.device_id}: {err}"
Expand Down
10 changes: 8 additions & 2 deletions homeassistant/components/miele/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,10 @@ class MieleSensorDefinition[T: (MieleDevice, MieleFillingLevel)]:

POLLED_SENSOR_TYPES: Final[tuple[MieleSensorDefinition[MieleFillingLevel], ...]] = (
MieleSensorDefinition(
types=(MieleAppliance.WASHING_MACHINE,),
types=(
MieleAppliance.WASHING_MACHINE,
MieleAppliance.WASHER_DRYER,
),
description=MieleSensorDescription[MieleFillingLevel](
key="twin_dos_1_level",
translation_key="twin_dos_1_level",
Expand All @@ -714,7 +717,10 @@ class MieleSensorDefinition[T: (MieleDevice, MieleFillingLevel)]:
),
),
MieleSensorDefinition(
types=(MieleAppliance.WASHING_MACHINE,),
types=(
MieleAppliance.WASHING_MACHINE,
MieleAppliance.WASHER_DRYER,
),
description=MieleSensorDescription[MieleFillingLevel](
key="twin_dos_2_level",
translation_key="twin_dos_2_level",
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/thermopro/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
"dependencies": ["bluetooth_adapters"],
"documentation": "https://www.home-assistant.io/integrations/thermopro",
"iot_class": "local_push",
"requirements": ["thermopro-ble==1.1.2"]
"requirements": ["thermopro-ble==1.1.3"]
}
8 changes: 8 additions & 0 deletions homeassistant/components/weatherflow/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,14 @@ def get_native_value(self, device: WeatherFlowDevice) -> datetime | StateType:
state_class=SensorStateClass.MEASUREMENT,
raw_data_conv_fn=lambda raw_data: raw_data.magnitude,
),
WeatherFlowSensorEntityDescription(
key="battery_percent",
native_unit_of_measurement=PERCENTAGE,
device_class=SensorDeviceClass.BATTERY,
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.MEASUREMENT,
raw_data_conv_fn=lambda raw_data: raw_data.magnitude,
),
WeatherFlowSensorEntityDescription(
key="illuminance",
native_unit_of_measurement=LIGHT_LUX,
Expand Down
4 changes: 2 additions & 2 deletions requirements_all.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions requirements_test_all.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/components/homematicip_cloud/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ async def test_hmip_absolute_humidity_sensor(
hass, mock_hap, entity_id, entity_name, device_model
)

assert ha_state.state == "6099.0"
assert ha_state.state == "6098.93825139002"


async def test_hmip_absolute_humidity_sensor_invalid_value(
Expand Down
Loading