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

Add helper to check for device initializtion instead of first status

This commit is contained in:
Nathan Spencer
2025-11-24 20:31:57 +00:00
parent 009cd8cde3
commit e6e84f8984
3 changed files with 22 additions and 18 deletions

View File

@@ -155,6 +155,11 @@ class OasisDevice:
if value:
self.brightness_on = value
@property
def is_initialized(self) -> bool:
"""Return `True` if the device is fully identified."""
return bool(self.serial_number and self.mac_address and self.software_version)
@property
def is_sleeping(self) -> bool:
"""