Skip to content

Commit

Permalink
Remove pause service (can use button press service)
Browse files Browse the repository at this point in the history
  • Loading branch information
ollo69 committed Feb 28, 2024
1 parent 20768bf commit 91f91b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
13 changes: 0 additions & 13 deletions custom_components/smartthinq_sensors/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
# service definition
SERVICE_REMOTE_START = "remote_start"
SERVICE_WAKE_UP = "wake_up"
SERVICE_PAUSE = "pause"
SERVICE_SET_TIME = "set_time"

# supported features
Expand Down Expand Up @@ -595,12 +594,6 @@ def _async_discover_device(lge_devices: dict) -> None:
"async_wake_up",
[SUPPORT_WM_SERVICES],
)
platform.async_register_entity_service(
SERVICE_PAUSE,
{},
"async_pause",
[SUPPORT_WM_SERVICES],
)
platform.async_register_entity_service(
SERVICE_SET_TIME,
{vol.Optional("time_wanted"): cv.time},
Expand Down Expand Up @@ -715,12 +708,6 @@ async def async_wake_up(self):
raise NotImplementedError()
await self._api.device.wake_up()

async def async_pause(self):
"""Call the pause command for WM devices."""
if self._api.type not in WM_DEVICE_TYPES:
raise NotImplementedError()
await self._api.device.pause()

async def async_set_time(self, time_wanted: time | None = None):
"""Call the set time command for Microwave devices."""
if self._api.type not in SET_TIME_DEVICE_TYPES:
Expand Down
8 changes: 0 additions & 8 deletions custom_components/smartthinq_sensors/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ wake_up:
integration: smartthinq_sensors
domain: sensor

pause:
name: Pause
description: Send to ThinQ device the pause command.
target:
entity:
integration: smartthinq_sensors
domain: sensor

set_time:
name: Set time
description: Set time device.
Expand Down

0 comments on commit 91f91b1

Please sign in to comment.