Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
0ae28ba
Use entity attribute enums for reads in Alexa (#178448)
epenet Aug 18, 2026
671b0d3
Use entity attribute enums in recorder (#178236)
epenet Aug 18, 2026
3e085fb
Add Entity.async_get_recent_context helper (#178425)
balloob Aug 18, 2026
094f026
Use entity state attribute enums in emulated_hue (#178350)
epenet Aug 18, 2026
5ce0fec
Invalidate conversation slot-list cache when entity moves to other de…
emontnemery Aug 18, 2026
a92eef9
Add icon for free disk space (#179495)
Eniot666 Aug 18, 2026
3e38ddd
Deprecate pyserial-asyncio in favor of serialx (#174014)
zweckj Aug 18, 2026
f3a1fe7
Bump airgradient to 0.10.0 (#179415)
samuelbles07 Aug 18, 2026
1b11765
Revert "Add Entity.async_get_recent_context helper" (#179496)
frenck Aug 18, 2026
fa50c33
Bump holidays to 0.103 (#179500)
gjohansson-ST Aug 18, 2026
1adf982
Fix Statistics helper crash with sampling_size of 0 (#179186)
RounakKumarAgarwal Aug 18, 2026
edf2127
Bump lyngdorf to 1.8.0 (#179498)
fishloa Aug 18, 2026
07a4111
Fix traccar_server subscribe() recursive reconnect causing RecursionE…
sam-ward Aug 18, 2026
74a27d0
Handle OAuth token refresh failures (#179364)
zweckj Aug 18, 2026
f46e041
Don't drop color adjustments when happening concurrently with brigthn…
jklausa Aug 18, 2026
e327acb
Add DALI scan binary sensor to lunatone (#179068)
MoonDevLT Aug 18, 2026
ea1c58c
Bump aioshelly to 13.30.0 (#179513)
bieniu Aug 18, 2026
cb9ad3a
Support set color temperature for Bond light (#179458)
LittleBoxOfSunshine Aug 18, 2026
1e2984c
Fix stale WiiM artwork when media image URLs are reused (#179461)
Linkplay2020 Aug 18, 2026
cb4ed9d
Retry a stalled Twinkly request (#179353)
Olen Aug 18, 2026
07f71d9
Show artwork and a play button when opening a Sonos music library alb…
bharat Aug 18, 2026
850886c
Add new lock model to Xiaomi BLE (#171532)
fengshutao Aug 18, 2026
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
2 changes: 1 addition & 1 deletion homeassistant/components/airgradient/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"integration_type": "device",
"iot_class": "local_polling",
"quality_scale": "platinum",
"requirements": ["airgradient==0.9.2"],
"requirements": ["airgradient==0.10.0"],
"zeroconf": ["_airgradient._tcp.local."]
}
2 changes: 1 addition & 1 deletion homeassistant/components/airgradient/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
class AirGradientNumberEntityDescription(NumberEntityDescription):
"""Describes AirGradient number entity."""

value_fn: Callable[[Config], int]
value_fn: Callable[[Config], int | None]
set_value_fn: Callable[[AirGradientClient, int], Awaitable[None]]


Expand Down
6 changes: 4 additions & 2 deletions homeassistant/components/airgradient/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ class AirGradientSelectEntityDescription(SelectEntityDescription):
translation_key="display_pm_standard",
options=list(PM_STANDARD_REVERSE),
entity_category=EntityCategory.CONFIG,
value_fn=lambda config: PM_STANDARD.get(config.pm_standard),
value_fn=lambda config: (
PM_STANDARD.get(config.pm_standard) if config.pm_standard else None
),
set_value_fn=lambda client, value: client.set_pm_standard(
PM_STANDARD_REVERSE[value]
),
Expand Down Expand Up @@ -100,7 +102,7 @@ class AirGradientSelectEntityDescription(SelectEntityDescription):
]


def _get_value(value: int, values: list[str]) -> str | None:
def _get_value(value: int | None, values: list[str]) -> str | None:
str_value = str(value)
return str_value if str_value in values else None

Expand Down
4 changes: 3 additions & 1 deletion homeassistant/components/airgradient/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ class AirGradientConfigSensorEntityDescription(SensorEntityDescription):
device_class=SensorDeviceClass.ENUM,
options=list(PM_STANDARD_REVERSE),
entity_category=EntityCategory.DIAGNOSTIC,
value_fn=lambda config: PM_STANDARD.get(config.pm_standard),
value_fn=lambda config: (
PM_STANDARD.get(config.pm_standard) if config.pm_standard else None
),
),
AirGradientConfigSensorEntityDescription(
key="display_brightness",
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/airgradient/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
class AirGradientSwitchEntityDescription(SwitchEntityDescription):
"""Describes AirGradient switch entity."""

value_fn: Callable[[Config], bool]
value_fn: Callable[[Config], bool | None]
set_value_fn: Callable[[AirGradientClient, bool], Awaitable[None]]


Expand Down Expand Up @@ -98,7 +98,7 @@ def __init__(

@property
@override
def is_on(self) -> bool:
def is_on(self) -> bool | None:
"""Return the state of the switch."""
return self.entity_description.value_fn(self.coordinator.data.config)

Expand Down
Loading
Loading