@property
def _bulb(self) -> 'yeelight.Bulb':
    import yeelight
    if (self._bulb_device is None):
        try:
            self._bulb_device = yeelight.Bulb(self._ipaddr)
            self._bulb_device.get_properties()
            self._available = True
        except yeelight.BulbException as ex:
            self._available = False
            _LOGGER.error('Failed to connect to bulb %s, %s: %s', self._ipaddr, self._name, ex)
    return self._bulb_device
@property
def _bulb(self) -> 'yeelight.Bulb':
    import yeelight
    if (self._bulb_device is None):
        try:
            self._bulb_device = yeelight.Bulb(self._ipaddr)
            self._bulb_device.get_properties()
            self._available = True
        except yeelight.BulbException as ex:
            self._available = False
            _LOGGER.error('Failed to connect to bulb %s, %s: %s', self._ipaddr, self._name, ex)
    return self._bulb_device