Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed May 2, 2024
2 parents 1888fa4 + fb8d42a commit 2065348
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/iaquk/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ def __init__(self, controller, sensor_type: str):
"""Initialize sensor."""
self._controller = controller
self._sensor_type = sensor_type
self._attr_unique_id = f"{controller.unique_id}_{sensor_type}"

self.entity_id = async_generate_entity_id(
ENTITY_ID_FORMAT, self._attr_unique_id, hass=controller.hass
)

self._attr_unique_id = f"{controller.unique_id}_{sensor_type}"
self._attr_name = f"{controller.name} {SENSORS[sensor_type]}"
self._attr_state_class = (
SensorStateClass.MEASUREMENT if sensor_type == SENSOR_INDEX else None
Expand Down
11 changes: 11 additions & 0 deletions custom_components/iaquk/translations/sensor.cs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"state": {
"iaquk__level": {
"Excellent": "Vynikající",
"Good": "Dobrá",
"Fair": "Uspokojivá",
"Poor": "Špatná",
"Inadequate": "Velmi špatná"
}
}
}
11 changes: 11 additions & 0 deletions custom_components/iaquk/translations/sensor.sk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"state": {
"iaquk__level": {
"Excellent": "Výborne",
"Good": "Dobre",
"Fair": "Dostatočne",
"Poor": "Zle",
"Inadequate": "Nedostatočne"
}
}
}

0 comments on commit 2065348

Please sign in to comment.