Freeze integration entity descriptions (#105984)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
ae8db120e8
commit
0c2485bc03
462 changed files with 806 additions and 804 deletions
|
@ -71,14 +71,14 @@ def get_uv_label(uv_index: int) -> str:
|
|||
return label.value
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class OpenUvSensorEntityDescriptionMixin:
|
||||
"""Define a mixin for OpenUV sensor descriptions."""
|
||||
|
||||
value_fn: Callable[[dict[str, Any]], int | str]
|
||||
|
||||
|
||||
@dataclass
|
||||
@dataclass(frozen=True)
|
||||
class OpenUvSensorEntityDescription(
|
||||
SensorEntityDescription, OpenUvSensorEntityDescriptionMixin
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue