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:
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user