mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Correct invalid docstring in gardena button (#96922)
This commit is contained in:
parent
deafdc3005
commit
daa53118b3
@ -40,7 +40,7 @@ DESCRIPTIONS = (
|
|||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
|
hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Set up binary sensor based on a config entry."""
|
"""Set up button based on a config entry."""
|
||||||
coordinator: Coordinator = hass.data[DOMAIN][entry.entry_id]
|
coordinator: Coordinator = hass.data[DOMAIN][entry.entry_id]
|
||||||
entities = [
|
entities = [
|
||||||
GardenaBluetoothButton(coordinator, description)
|
GardenaBluetoothButton(coordinator, description)
|
||||||
@ -51,7 +51,7 @@ async def async_setup_entry(
|
|||||||
|
|
||||||
|
|
||||||
class GardenaBluetoothButton(GardenaBluetoothDescriptorEntity, ButtonEntity):
|
class GardenaBluetoothButton(GardenaBluetoothDescriptorEntity, ButtonEntity):
|
||||||
"""Representation of a binary sensor."""
|
"""Representation of a button."""
|
||||||
|
|
||||||
entity_description: GardenaBluetoothButtonEntityDescription
|
entity_description: GardenaBluetoothButtonEntityDescription
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user