1
0
mirror of https://github.com/natekspencer/hacs-oasis_mini.git synced 2025-12-06 18:44:14 -05:00

Formatting

This commit is contained in:
Nathan Spencer
2025-11-24 04:37:10 +00:00
parent 14223bd1c9
commit 04be6626a7
11 changed files with 61 additions and 62 deletions

View File

@@ -24,9 +24,9 @@ class OasisDeviceEntity(CoordinatorEntity[OasisDeviceCoordinator]):
) -> None:
"""
Initialize an entity representing an Oasis device.
Sets the entity's unique_id from the device serial number and the provided description key, stores the given device on the entity, and constructs DeviceInfo containing identifiers, name, manufacturer, model, software version, and a network MAC connection if the device exposes a MAC address.
Parameters:
coordinator: The coordinator responsible for updating the device state.
device: OasisDevice instance providing metadata and identifiers (serial_number, mac_address, name, manufacturer, model, software_version).
@@ -51,4 +51,4 @@ class OasisDeviceEntity(CoordinatorEntity[OasisDeviceCoordinator]):
model=device.model,
serial_number=serial_number,
sw_version=device.software_version,
)
)