mirror of
https://github.com/natekspencer/hacs-oasis_mini.git
synced 2025-12-06 18:44:14 -05:00
Replace tabs with spaces
This commit is contained in:
@@ -15,20 +15,20 @@ class OasisClientProtocol(Protocol):
|
||||
"""
|
||||
|
||||
async def async_get_mac_address(self, device: OasisDevice) -> str | None:
|
||||
"""
|
||||
Retrieve the MAC address of the specified Oasis device.
|
||||
"""
|
||||
Retrieve the MAC address of the specified Oasis device.
|
||||
|
||||
Parameters:
|
||||
device (OasisDevice): The target device to query.
|
||||
Parameters:
|
||||
device (OasisDevice): The target device to query.
|
||||
|
||||
Returns:
|
||||
str | None: The device's MAC address as a string, or `None` if the MAC address is unavailable.
|
||||
"""
|
||||
Returns:
|
||||
str | None: The device's MAC address as a string, or `None` if the MAC address is unavailable.
|
||||
"""
|
||||
|
||||
async def async_send_auto_clean_command(
|
||||
self, device: OasisDevice, auto_clean: bool
|
||||
) -> None:
|
||||
"""
|
||||
"""
|
||||
Enable or disable the device's auto-clean mode.
|
||||
|
||||
Parameters:
|
||||
@@ -41,7 +41,7 @@ class OasisClientProtocol(Protocol):
|
||||
device: OasisDevice,
|
||||
speed: int,
|
||||
) -> None:
|
||||
"""
|
||||
"""
|
||||
Set the device's ball speed to the specified value.
|
||||
|
||||
Parameters:
|
||||
@@ -57,7 +57,7 @@ class OasisClientProtocol(Protocol):
|
||||
led_speed: int,
|
||||
brightness: int,
|
||||
) -> None:
|
||||
"""
|
||||
"""
|
||||
Configure the device's LED effect, color, speed, and brightness.
|
||||
|
||||
Parameters:
|
||||
@@ -69,12 +69,12 @@ class OasisClientProtocol(Protocol):
|
||||
"""
|
||||
|
||||
async def async_send_sleep_command(self, device: OasisDevice) -> None:
|
||||
"""
|
||||
Put the specified Oasis device into sleep mode.
|
||||
"""
|
||||
Put the specified Oasis device into sleep mode.
|
||||
|
||||
Parameters:
|
||||
device (OasisDevice): The target Oasis device to send the sleep command to.
|
||||
"""
|
||||
Parameters:
|
||||
device (OasisDevice): The target Oasis device to send the sleep command to.
|
||||
"""
|
||||
|
||||
async def async_send_move_job_command(
|
||||
self,
|
||||
@@ -82,7 +82,7 @@ class OasisClientProtocol(Protocol):
|
||||
from_index: int,
|
||||
to_index: int,
|
||||
) -> None:
|
||||
"""
|
||||
"""
|
||||
Move a job within the device's job list from one index to another.
|
||||
|
||||
Parameters:
|
||||
@@ -96,7 +96,7 @@ class OasisClientProtocol(Protocol):
|
||||
device: OasisDevice,
|
||||
index: int,
|
||||
) -> None:
|
||||
"""
|
||||
"""
|
||||
Change the device's current track to the specified track index.
|
||||
|
||||
Parameters:
|
||||
@@ -109,12 +109,12 @@ class OasisClientProtocol(Protocol):
|
||||
device: OasisDevice,
|
||||
tracks: list[int],
|
||||
) -> None:
|
||||
"""
|
||||
"""
|
||||
Add the given sequence of track indices to the device's job list.
|
||||
|
||||
Parameters:
|
||||
device (OasisDevice): Target Oasis device to receive the new jobs.
|
||||
tracks (list[int]): Ordered list of track indices to append to the device's job list.
|
||||
device (OasisDevice): Target Oasis device to receive the new jobs.
|
||||
tracks (list[int]): Ordered list of track indices to append to the device's job list.
|
||||
"""
|
||||
|
||||
async def async_send_set_playlist_command(
|
||||
@@ -122,7 +122,7 @@ class OasisClientProtocol(Protocol):
|
||||
device: OasisDevice,
|
||||
playlist: list[int],
|
||||
) -> None:
|
||||
"""
|
||||
"""
|
||||
Set the device's current playlist to the provided sequence of track indices.
|
||||
|
||||
Parameters:
|
||||
@@ -135,7 +135,7 @@ class OasisClientProtocol(Protocol):
|
||||
device: OasisDevice,
|
||||
repeat: bool,
|
||||
) -> None:
|
||||
"""
|
||||
"""
|
||||
Set whether the device should repeat the current playlist.
|
||||
|
||||
Parameters:
|
||||
@@ -147,7 +147,7 @@ class OasisClientProtocol(Protocol):
|
||||
device: OasisDevice,
|
||||
option: str,
|
||||
) -> None:
|
||||
"""
|
||||
"""
|
||||
Send a command to configure the device's autoplay behavior.
|
||||
|
||||
Parameters:
|
||||
@@ -160,7 +160,7 @@ class OasisClientProtocol(Protocol):
|
||||
device: OasisDevice,
|
||||
beta: bool,
|
||||
) -> None:
|
||||
"""
|
||||
"""
|
||||
Initiates a firmware upgrade on the given Oasis device.
|
||||
|
||||
If `beta` is True, requests the device to use the beta upgrade channel; otherwise requests the stable channel.
|
||||
@@ -171,52 +171,52 @@ class OasisClientProtocol(Protocol):
|
||||
"""
|
||||
|
||||
async def async_send_play_command(self, device: OasisDevice) -> None:
|
||||
"""
|
||||
Send a play command to the specified Oasis device.
|
||||
"""
|
||||
Send a play command to the specified Oasis device.
|
||||
|
||||
Parameters:
|
||||
device (OasisDevice): The target device to instruct to start playback.
|
||||
"""
|
||||
Parameters:
|
||||
device (OasisDevice): The target device to instruct to start playback.
|
||||
"""
|
||||
|
||||
async def async_send_pause_command(self, device: OasisDevice) -> None:
|
||||
"""
|
||||
Pause playback on the specified Oasis device.
|
||||
"""
|
||||
Pause playback on the specified Oasis device.
|
||||
|
||||
This sends a pause command to the device so it stops current playback.
|
||||
"""
|
||||
This sends a pause command to the device so it stops current playback.
|
||||
"""
|
||||
|
||||
async def async_send_stop_command(self, device: OasisDevice) -> None:
|
||||
"""
|
||||
Send a stop command to the specified Oasis device to halt playback.
|
||||
"""
|
||||
Send a stop command to the specified Oasis device to halt playback.
|
||||
|
||||
Parameters:
|
||||
device (OasisDevice): The target Oasis device to receive the stop command.
|
||||
"""
|
||||
Parameters:
|
||||
device (OasisDevice): The target Oasis device to receive the stop command.
|
||||
"""
|
||||
|
||||
async def async_send_reboot_command(self, device: OasisDevice) -> None:
|
||||
"""
|
||||
Send a reboot command to the specified Oasis device.
|
||||
"""
|
||||
Send a reboot command to the specified Oasis device.
|
||||
|
||||
Parameters:
|
||||
device (OasisDevice): The target Oasis device to reboot.
|
||||
"""
|
||||
Parameters:
|
||||
device (OasisDevice): The target Oasis device to reboot.
|
||||
"""
|
||||
|
||||
async def async_get_all(self, device: OasisDevice) -> None:
|
||||
"""
|
||||
Fetch comprehensive device data for the specified Oasis device.
|
||||
"""
|
||||
Fetch comprehensive device data for the specified Oasis device.
|
||||
|
||||
This method triggers retrieval of all relevant information (configuration, status, and runtime data) for the given device so the client's representation of that device can be refreshed.
|
||||
This method triggers retrieval of all relevant information (configuration, status, and runtime data) for the given device so the client's representation of that device can be refreshed.
|
||||
|
||||
Parameters:
|
||||
device (OasisDevice): Target device whose data should be fetched and refreshed.
|
||||
"""
|
||||
Parameters:
|
||||
device (OasisDevice): Target device whose data should be fetched and refreshed.
|
||||
"""
|
||||
|
||||
async def async_get_status(self, device: OasisDevice) -> None:
|
||||
"""
|
||||
Retrieve the current runtime status for the specified Oasis device.
|
||||
"""
|
||||
Retrieve the current runtime status for the specified Oasis device.
|
||||
|
||||
Implementations should query the device for its current state (for example: playback, LED settings, job/track lists, and connectivity) and update any client-side representation or caches as needed.
|
||||
Implementations should query the device for its current state (for example: playback, LED settings, job/track lists, and connectivity) and update any client-side representation or caches as needed.
|
||||
|
||||
Parameters:
|
||||
device (OasisDevice): The target device to query.
|
||||
"""
|
||||
Parameters:
|
||||
device (OasisDevice): The target device to query.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user