Skip to content

Commit

Permalink
Fix docstrings in opentherm_gw (#125456)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvn23 authored Sep 7, 2024
1 parent 3e70342 commit 066503b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions homeassistant/components/opentherm_gw/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class OpenThermSwitchEntityDescription(
OpenThermEntityDescription, SwitchEntityDescription
):
"""Describes opentherm_gw switch entity."""
"""Describes an opentherm_gw switch entity."""

turn_off_action: Callable[[OpenThermGatewayHub], Awaitable[int | None]]
turn_on_action: Callable[[OpenThermGatewayHub], Awaitable[int | None]]
Expand Down Expand Up @@ -67,13 +67,13 @@ class OpenThermSwitch(OpenThermEntity, SwitchEntity):
entity_description: OpenThermSwitchEntityDescription

async def async_turn_off(self, **kwargs: Any) -> None:
"""Turn switch on."""
"""Turn the switch off."""
value = await self.entity_description.turn_off_action(self._gateway)
self._attr_is_on = bool(value) if value is not None else None
self.async_write_ha_state()

async def async_turn_on(self, **kwargs: Any) -> None:
"""Turn switch on."""
"""Turn the switch on."""
value = await self.entity_description.turn_on_action(self._gateway)
self._attr_is_on = bool(value) if value is not None else None
self.async_write_ha_state()

0 comments on commit 066503b

Please sign in to comment.