@property
def is_on(self) -> bool:
    'Return true if device is on.'
    return ((self._device.dimLevel is not None) and (self._device.dimLevel > 0.0))
Return true if device is on.
@property
def is_on(self) -> bool:
    
    return ((self._device.dimLevel is not None) and (self._device.dimLevel > 0.0))