Skip to content
Snippets Groups Projects
Unverified Commit 287b7eec authored by G Johansson's avatar G Johansson Committed by GitHub
Browse files

Clean up docstrings in Sensibo (#134591)

parent e6da6d96
No related branches found
No related tags found
No related merge requests found
...@@ -26,14 +26,14 @@ PARALLEL_UPDATES = 0 ...@@ -26,14 +26,14 @@ PARALLEL_UPDATES = 0
@dataclass(frozen=True, kw_only=True) @dataclass(frozen=True, kw_only=True)
class SensiboMotionBinarySensorEntityDescription(BinarySensorEntityDescription): class SensiboMotionBinarySensorEntityDescription(BinarySensorEntityDescription):
"""Describes Sensibo Motion sensor entity.""" """Describes Sensibo Motion binary sensor entity."""
value_fn: Callable[[MotionSensor], bool | None] value_fn: Callable[[MotionSensor], bool | None]
@dataclass(frozen=True, kw_only=True) @dataclass(frozen=True, kw_only=True)
class SensiboDeviceBinarySensorEntityDescription(BinarySensorEntityDescription): class SensiboDeviceBinarySensorEntityDescription(BinarySensorEntityDescription):
"""Describes Sensibo Motion sensor entity.""" """Describes Sensibo Motion binary sensor entity."""
value_fn: Callable[[SensiboDevice], bool | None] value_fn: Callable[[SensiboDevice], bool | None]
......
...@@ -37,7 +37,7 @@ async def async_setup_entry( ...@@ -37,7 +37,7 @@ async def async_setup_entry(
entry: SensiboConfigEntry, entry: SensiboConfigEntry,
async_add_entities: AddEntitiesCallback, async_add_entities: AddEntitiesCallback,
) -> None: ) -> None:
"""Set up Sensibo binary sensor platform.""" """Set up Sensibo button platform."""
coordinator = entry.runtime_data coordinator = entry.runtime_data
...@@ -48,7 +48,7 @@ async def async_setup_entry( ...@@ -48,7 +48,7 @@ async def async_setup_entry(
class SensiboDeviceButton(SensiboDeviceBaseEntity, ButtonEntity): class SensiboDeviceButton(SensiboDeviceBaseEntity, ButtonEntity):
"""Representation of a Sensibo Device Binary Sensor.""" """Representation of a Sensibo Device button."""
entity_description: SensiboButtonEntityDescription entity_description: SensiboButtonEntityDescription
......
"""Support for Sensibo wifi-enabled home thermostats.""" """Support for Sensibo climate devices."""
from __future__ import annotations from __future__ import annotations
...@@ -189,7 +189,7 @@ async def async_setup_entry( ...@@ -189,7 +189,7 @@ async def async_setup_entry(
class SensiboClimate(SensiboDeviceBaseEntity, ClimateEntity): class SensiboClimate(SensiboDeviceBaseEntity, ClimateEntity):
"""Representation of a Sensibo device.""" """Representation of a Sensibo climate device."""
_attr_name = None _attr_name = None
_attr_precision = PRECISION_TENTHS _attr_precision = PRECISION_TENTHS
......
...@@ -56,7 +56,7 @@ async def async_setup_entry( ...@@ -56,7 +56,7 @@ async def async_setup_entry(
entry: SensiboConfigEntry, entry: SensiboConfigEntry,
async_add_entities: AddEntitiesCallback, async_add_entities: AddEntitiesCallback,
) -> None: ) -> None:
"""Set up Sensibo number platform.""" """Set up Sensibo select platform."""
coordinator = entry.runtime_data coordinator = entry.runtime_data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment