custom_components/broadlinkcover/climate.py
def _async_update_temp(self, state):
        """Update thermostat with latest state from temperature sensor."""
        try:
            if state.state != STATE_UNKNOWN:
                self._current_temperature = float(state.state)
        except ValueError as ex:
            _LOGGER.error("Unable to update from temperature sensor: %s", ex)
Update thermostat with latest state from temperature sensor.
Update thermostat with latest state from temperature sensor.
Update thermostat with latest state from temperature sensor .
def _async_update_temp(self, state):
        try:
            if state.state != STATE_UNKNOWN:
                self._current_temperature = float(state.state)
        except ValueError as ex:
            _LOGGER.error("Unable to update from temperature sensor: %s", ex)
def _async_update_temp ( self , state ) : try : if state . state != STATE_UNKNOWN : self . _current_temperature = float ( state . state ) except ValueError as ex : _LOGGER . error ( "Unable to update from temperature sensor: %s" , ex )
Update thermostat with latest state from temperature sensor.
Update thermostat with latest state from temperature sensor .
"""Update thermostat with latest state from temperature sensor."""
self
state