def update(self):
    'Request an update from the BloomSky API.'
    self._bloomsky.refresh_devices()
    state = self._bloomsky.devices[self._device_id]['Data'][self._sensor_name]
    if (self._sensor_name in FORMAT_NUMBERS):
        self._state = '{0:.2f}'.format(state)
    else:
        self._state = state
Request an update from the BloomSky API.
def update(self):
    
    self._bloomsky.refresh_devices()
    state = self._bloomsky.devices[self._device_id]['Data'][self._sensor_name]
    if (self._sensor_name in FORMAT_NUMBERS):
        self._state = '{0:.2f}'.format(state)
    else:
        self._state = state