Skip to content

Commit

Permalink
Start dropping support for HA versions older than 2024.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pnbruckner committed Nov 21, 2024
1 parent d72ad0e commit 968dac7
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 10 deletions.
11 changes: 2 additions & 9 deletions custom_components/illuminance/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,7 @@
)
from homeassistant.core import Event, HomeAssistant, State, callback
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.device_registry import DeviceEntryType

# Device Info moved to device_registry in 2023.9
try:
from homeassistant.helpers.device_registry import DeviceInfo
except ImportError:
from homeassistant.helpers.entity import DeviceInfo # type: ignore[attr-defined]

from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.entity_platform import AddEntitiesCallback, EntityPlatform
from homeassistant.helpers.event import async_track_state_change_event
Expand Down Expand Up @@ -264,7 +257,7 @@ class IlluminanceSensor(SensorEntity):
_attr_device_info = DeviceInfo(
entry_type=DeviceEntryType.SERVICE,
identifiers={(DOMAIN, DOMAIN)},
name=DOMAIN.title(),
translation_key="service",
)
_entity_status = EntityStatus.NOT_SEEN
_sk_mapping: Sequence[tuple[Num, Sequence[str]]] | None = None
Expand Down
5 changes: 5 additions & 0 deletions custom_components/illuminance/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
}
}
},
"device": {
"service": {
"name": "Illuminance"
}
},
"options": {
"step": {
"options": {
Expand Down
5 changes: 5 additions & 0 deletions custom_components/illuminance/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
}
}
},
"device": {
"service": {
"name": "Illuminazione"
}
},
"options": {
"step": {
"options": {
Expand Down
5 changes: 5 additions & 0 deletions custom_components/illuminance/translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
}
}
},
"device": {
"service": {
"name": "Verlichtingssterkte"
}
},
"options": {
"step": {
"options": {
Expand Down
5 changes: 5 additions & 0 deletions custom_components/illuminance/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
}
}
},
"device": {
"service": {
"name": "Natężenie oświetlenia"
}
},
"options": {
"step": {
"options": {
Expand Down
5 changes: 5 additions & 0 deletions custom_components/illuminance/translations/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
}
}
},
"device": {
"service": {
"name": "Illuminance"
}
},
"options": {
"step": {
"options": {
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "Illuminance",
"homeassistant": "2023.4.0"
"homeassistant": "2024.8.3"
}

0 comments on commit 968dac7

Please sign in to comment.