Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve text quality #154

Merged
merged 1 commit into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions custom_components/kumo/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from .const import DOMAIN
from .coordinator import KumoDataUpdateCoordinator
from .entity import CoordinatedKumoEntitty
from .entity import CoordinatedKumoEntity

try:
from homeassistant.components.climate import ClimateEntity
Expand Down Expand Up @@ -107,7 +107,7 @@ async def async_setup_entry(
async_add_entities(entities, True)


class KumoThermostat(CoordinatedKumoEntitty, ClimateEntity):
class KumoThermostat(CoordinatedKumoEntity, ClimateEntity):
"""Representation of a Kumo Thermostat device."""

_update_properties = [
Expand Down
6 changes: 3 additions & 3 deletions custom_components/kumo/entity.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Entities for The Internet Printing Protocol (IPP) integration."""
"""Entities for the Kumo integration."""
from __future__ import annotations

from homeassistant.helpers.entity import DeviceInfo
Expand All @@ -8,7 +8,7 @@
from .coordinator import KumoDataUpdateCoordinator


class CoordinatedKumoEntitty(CoordinatorEntity):
class CoordinatedKumoEntity(CoordinatorEntity):
"""Defines a base Kumo entity."""

def __init__(
Expand All @@ -23,7 +23,7 @@ def __init__(

@property
def device_info(self) -> DeviceInfo | None:
"""Return device information about this IPP device."""
"""Return information about the underlying device."""
if self._identifier is None:
return None

Expand Down
14 changes: 7 additions & 7 deletions custom_components/kumo/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from .const import DOMAIN, KUMO_DATA_COORDINATORS
from .coordinator import KumoDataUpdateCoordinator
from .entity import CoordinatedKumoEntitty
from .entity import CoordinatedKumoEntity

try:
from homeassistant.components.sensor import SensorEntity
Expand Down Expand Up @@ -65,7 +65,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_e
if entities:
async_add_entities(entities, True)

class KumoCurrentHumidity(CoordinatedKumoEntitty, SensorEntity):
class KumoCurrentHumidity(CoordinatedKumoEntity, SensorEntity):
"""Representation of a Kumo's Unit's Current Humidity"""

def __init__(self, coordinator: KumoDataUpdateCoordinator):
Expand Down Expand Up @@ -102,7 +102,7 @@ def entity_registry_enabled_default(self) -> bool:
"""Disable entity by default."""
return False

class KumoCurrentTemperature(CoordinatedKumoEntitty, SensorEntity):
class KumoCurrentTemperature(CoordinatedKumoEntity, SensorEntity):
"""Representation of a Kumo's Unit's Current Temperature"""

def __init__(self, coordinator: KumoDataUpdateCoordinator):
Expand Down Expand Up @@ -139,7 +139,7 @@ def entity_registry_enabled_default(self) -> bool:
"""Enable entity by default."""
return True

class KumoSensorBattery(CoordinatedKumoEntitty, SensorEntity):
class KumoSensorBattery(CoordinatedKumoEntity, SensorEntity):
"""Representation of a Kumo Sensor's Battery Level."""

def __init__(self, coordinator: KumoDataUpdateCoordinator):
Expand Down Expand Up @@ -171,7 +171,7 @@ def entity_registry_enabled_default(self) -> bool:
"""Disable entity by default."""
return False

class KumoSensorSignalStrength(CoordinatedKumoEntitty, SensorEntity):
class KumoSensorSignalStrength(CoordinatedKumoEntity, SensorEntity):
"""Representation of a Kumo Sensor's Signal Strength."""

def __init__(self, coordinator: KumoDataUpdateCoordinator):
Expand Down Expand Up @@ -204,7 +204,7 @@ def entity_registry_enabled_default(self) -> bool:
return False


class KumoStationOutdoorTemperature(CoordinatedKumoEntitty, SensorEntity):
class KumoStationOutdoorTemperature(CoordinatedKumoEntity, SensorEntity):
"""Representation of a Kumo Station Outdoor Temperature Sensor."""

def __init__(self, coordinator: KumoDataUpdateCoordinator):
Expand Down Expand Up @@ -242,7 +242,7 @@ def entity_registry_enabled_default(self) -> bool:
return False


class KumoWifiSignal(CoordinatedKumoEntitty, SensorEntity):
class KumoWifiSignal(CoordinatedKumoEntity, SensorEntity):
"""Representation of a Kumo's WiFi Signal Strength."""

def __init__(self, coordinator: KumoDataUpdateCoordinator):
Expand Down