mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Fix stale docstrings in tplink integration (#135183)
This commit is contained in:
parent
8e28b7b49b
commit
1550086dd6
@ -23,7 +23,7 @@ from .entity import CoordinatedTPLinkFeatureEntity, TPLinkFeatureEntityDescripti
|
||||
class TPLinkBinarySensorEntityDescription(
|
||||
BinarySensorEntityDescription, TPLinkFeatureEntityDescription
|
||||
):
|
||||
"""Base class for a TPLink feature based sensor entity description."""
|
||||
"""Base class for a TPLink feature based binary sensor entity description."""
|
||||
|
||||
|
||||
# Coordinator is used to centralize the data updates
|
||||
|
@ -31,7 +31,7 @@ _LOGGER = logging.getLogger(__name__)
|
||||
class TPLinkNumberEntityDescription(
|
||||
NumberEntityDescription, TPLinkFeatureEntityDescription
|
||||
):
|
||||
"""Base class for a TPLink feature based sensor entity description."""
|
||||
"""Base class for a TPLink feature based number entity description."""
|
||||
|
||||
|
||||
# Coordinator is used to centralize the data updates
|
||||
@ -74,7 +74,7 @@ async def async_setup_entry(
|
||||
config_entry: TPLinkConfigEntry,
|
||||
async_add_entities: AddEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up sensors."""
|
||||
"""Set up number entities."""
|
||||
data = config_entry.runtime_data
|
||||
parent_coordinator = data.parent_coordinator
|
||||
children_coordinators = data.children_coordinators
|
||||
@ -93,7 +93,7 @@ async def async_setup_entry(
|
||||
|
||||
|
||||
class TPLinkNumberEntity(CoordinatedTPLinkFeatureEntity, NumberEntity):
|
||||
"""Representation of a feature-based TPLink sensor."""
|
||||
"""Representation of a feature-based TPLink number entity."""
|
||||
|
||||
entity_description: TPLinkNumberEntityDescription
|
||||
|
||||
@ -106,7 +106,7 @@ class TPLinkNumberEntity(CoordinatedTPLinkFeatureEntity, NumberEntity):
|
||||
description: TPLinkFeatureEntityDescription,
|
||||
parent: Device | None = None,
|
||||
) -> None:
|
||||
"""Initialize the a switch."""
|
||||
"""Initialize the number entity."""
|
||||
super().__init__(
|
||||
device, coordinator, feature=feature, description=description, parent=parent
|
||||
)
|
||||
|
@ -24,7 +24,7 @@ from .entity import (
|
||||
class TPLinkSelectEntityDescription(
|
||||
SelectEntityDescription, TPLinkFeatureEntityDescription
|
||||
):
|
||||
"""Base class for a TPLink feature based sensor entity description."""
|
||||
"""Base class for a TPLink feature based select entity description."""
|
||||
|
||||
|
||||
# Coordinator is used to centralize the data updates
|
||||
@ -51,7 +51,7 @@ async def async_setup_entry(
|
||||
config_entry: TPLinkConfigEntry,
|
||||
async_add_entities: AddEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up sensors."""
|
||||
"""Set up select entities."""
|
||||
data = config_entry.runtime_data
|
||||
parent_coordinator = data.parent_coordinator
|
||||
children_coordinators = data.children_coordinators
|
||||
|
@ -1,4 +1,4 @@
|
||||
"""Support for TPLink hub alarm."""
|
||||
"""Support for TPLink siren entity."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@ -35,7 +35,7 @@ async def async_setup_entry(
|
||||
|
||||
|
||||
class TPLinkSirenEntity(CoordinatedTPLinkEntity, SirenEntity):
|
||||
"""Representation of a tplink hub alarm."""
|
||||
"""Representation of a tplink siren entity."""
|
||||
|
||||
_attr_name = None
|
||||
_attr_supported_features = SirenEntityFeature.TURN_OFF | SirenEntityFeature.TURN_ON
|
||||
|
@ -26,7 +26,7 @@ _LOGGER = logging.getLogger(__name__)
|
||||
class TPLinkSwitchEntityDescription(
|
||||
SwitchEntityDescription, TPLinkFeatureEntityDescription
|
||||
):
|
||||
"""Base class for a TPLink feature based sensor entity description."""
|
||||
"""Base class for a TPLink feature based switch entity description."""
|
||||
|
||||
|
||||
# Coordinator is used to centralize the data updates
|
||||
|
Loading…
x
Reference in New Issue
Block a user