supla: Change casing of integration name to upstream SUPLA (#101723)
This commit is contained in:
parent
c6a3fa30f0
commit
9afdc22818
5 changed files with 12 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
"""Support for Supla cover - curtains, rollershutters, entry gate etc."""
|
||||
"""Support for SUPLA covers - curtains, rollershutters, entry gate etc."""
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
|
@ -26,7 +26,7 @@ async def async_setup_platform(
|
|||
async_add_entities: AddEntitiesCallback,
|
||||
discovery_info: DiscoveryInfoType | None = None,
|
||||
) -> None:
|
||||
"""Set up the Supla covers."""
|
||||
"""Set up the SUPLA covers."""
|
||||
if discovery_info is None:
|
||||
return
|
||||
|
||||
|
@ -59,7 +59,7 @@ async def async_setup_platform(
|
|||
|
||||
|
||||
class SuplaCoverEntity(SuplaEntity, CoverEntity):
|
||||
"""Representation of a Supla Cover."""
|
||||
"""Representation of a SUPLA Cover."""
|
||||
|
||||
@property
|
||||
def current_cover_position(self) -> int | None:
|
||||
|
@ -93,7 +93,7 @@ class SuplaCoverEntity(SuplaEntity, CoverEntity):
|
|||
|
||||
|
||||
class SuplaDoorEntity(SuplaEntity, CoverEntity):
|
||||
"""Representation of a Supla door."""
|
||||
"""Representation of a SUPLA door."""
|
||||
|
||||
_attr_device_class = CoverDeviceClass.GARAGE
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""Base class for Supla channels."""
|
||||
"""Base class for SUPLA channels."""
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
|
@ -9,7 +9,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||
|
||||
|
||||
class SuplaEntity(CoordinatorEntity):
|
||||
"""Base class of a Supla Channel (an equivalent of HA's Entity)."""
|
||||
"""Base class of a SUPLA Channel (an equivalent of HA's Entity)."""
|
||||
|
||||
def __init__(self, config, server, coordinator):
|
||||
"""Init from config, hookup[ server and coordinator."""
|
||||
|
@ -49,7 +49,7 @@ class SuplaEntity(CoordinatorEntity):
|
|||
"""Run server action.
|
||||
|
||||
Actions are currently hardcoded in components.
|
||||
Supla's API enables autodiscovery
|
||||
SUPLA's API enables autodiscovery
|
||||
"""
|
||||
_LOGGER.debug(
|
||||
"Executing action %s on channel %d, params: %s",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"domain": "supla",
|
||||
"name": "Supla",
|
||||
"name": "SUPLA",
|
||||
"codeowners": ["@mwegrzynek"],
|
||||
"documentation": "https://www.home-assistant.io/integrations/supla",
|
||||
"iot_class": "cloud_polling",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""Support for Supla switch."""
|
||||
"""Support for SUPLA switch."""
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
|
@ -22,7 +22,7 @@ async def async_setup_platform(
|
|||
async_add_entities: AddEntitiesCallback,
|
||||
discovery_info: DiscoveryInfoType | None = None,
|
||||
) -> None:
|
||||
"""Set up the Supla switches."""
|
||||
"""Set up the SUPLA switches."""
|
||||
if discovery_info is None:
|
||||
return
|
||||
|
||||
|
@ -44,7 +44,7 @@ async def async_setup_platform(
|
|||
|
||||
|
||||
class SuplaSwitchEntity(SuplaEntity, SwitchEntity):
|
||||
"""Representation of a Supla Switch."""
|
||||
"""Representation of a SUPLA Switch."""
|
||||
|
||||
async def async_turn_on(self, **kwargs: Any) -> None:
|
||||
"""Turn on the switch."""
|
||||
|
|
|
@ -5503,7 +5503,7 @@
|
|||
"iot_class": "local_polling"
|
||||
},
|
||||
"supla": {
|
||||
"name": "Supla",
|
||||
"name": "SUPLA",
|
||||
"integration_type": "hub",
|
||||
"config_flow": false,
|
||||
"iot_class": "cloud_polling"
|
||||
|
|
Loading…
Add table
Reference in a new issue