Skip to content

Commit

Permalink
Update strings
Browse files Browse the repository at this point in the history
  • Loading branch information
schmittx committed Jul 29, 2023
1 parent 7258a31 commit 97aaf02
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 3 deletions.
4 changes: 4 additions & 0 deletions custom_components/ge_appliances/devices/dishwasher.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging
from typing import List

from homeassistant.components.sensor import SensorStateClass
from homeassistant.const import UnitOfTime
from homeassistant.helpers.entity import Entity
from ..api.erd import ErdCode, ErdApplianceType
Expand Down Expand Up @@ -181,6 +182,7 @@ def get_all_entities(self) -> List[Entity]:
# icon="mdi:counter",
name="Cycles Started",
native_unit_of_measurement="cycles",
state_class=SensorStateClass.TOTAL_INCREASING,
),
GeErdPropertySensor(
api=self,
Expand All @@ -189,6 +191,7 @@ def get_all_entities(self) -> List[Entity]:
# icon="mdi:counter",
name="Cycles Completed",
native_unit_of_measurement="cycles",
state_class=SensorStateClass.TOTAL_INCREASING,
),
GeErdPropertySensor(
api=self,
Expand All @@ -197,6 +200,7 @@ def get_all_entities(self) -> List[Entity]:
# icon="mdi:counter",
name="Cycles Reset",
native_unit_of_measurement="cycles",
state_class=SensorStateClass.TOTAL_INCREASING,
)
]
entities = base_entities + dishwasher_entities
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import magicattr
from typing import Optional

from homeassistant.components.sensor import SensorStateClass
from homeassistant.const import EntityCategory

from ...api import ErdCode, ErdCodeType, ErdMeasurementUnits, ErdDataType
Expand All @@ -23,7 +24,7 @@ def __init__(
icon: str = None,
data_type: ErdDataType = None,
native_unit_of_measurement: str = None,
state_class: str = None,
state_class: str[SensorStateClass] | None = None,
) -> None:
super().__init__(
api=api,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(
icon: str = None,
data_type: ErdDataType = None,
native_unit_of_measurement: str = None,
state_class: str = None,
state_class: str[SensorStateClass] | None = None,
) -> None:
super().__init__(
api=api,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ge_appliances/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"magicattr==0.1.6",
"slixmpp==1.8.3"
],
"version": "1.0.0"
"version": "1.0.1"
}
10 changes: 10 additions & 0 deletions custom_components/ge_appliances/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@
"main_wash": "Main Wash",
"max_dry": "Max Dry",
"normal": "Normal",
"normal_cold_water": "Normal Cold Water",
"normal_full_drain": "Normal Full Drain",
"normal_max_full_d": "Normal Max Full D",
"normal_normal": "Normal Normal",
"normal_post_rinse": "Normal Post Rinse",
"normal_pw_non-pul": "Normal PW Non-Pul",
"normal_pw_pulsing": "Normal PW Pulsing",
"normal_sani_fr": "Normal Sani Fr",
"normal_steam_dry": "Normal Steam Dry",
"normal_steam_or_p": "Normal Steam or P",
"normal_super_dry": "Normal Super Dry",
"pause": "Pause",
"power_dry": "Power Dry",
Expand Down
10 changes: 10 additions & 0 deletions custom_components/ge_appliances/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@
"main_wash": "Main Wash",
"max_dry": "Max Dry",
"normal": "Normal",
"normal_cold_water": "Normal Cold Water",
"normal_full_drain": "Normal Full Drain",
"normal_max_full_d": "Normal Max Full D",
"normal_normal": "Normal Normal",
"normal_post_rinse": "Normal Post Rinse",
"normal_pw_non-pul": "Normal PW Non-Pul",
"normal_pw_pulsing": "Normal PW Pulsing",
"normal_sani_fr": "Normal Sani Fr",
"normal_steam_dry": "Normal Steam Dry",
"normal_steam_or_p": "Normal Steam or P",
"normal_super_dry": "Normal Super Dry",
"pause": "Pause",
"power_dry": "Power Dry",
Expand Down

0 comments on commit 97aaf02

Please sign in to comment.