original_docstring: Return the state of the sensor.
docstring: Return the state of the sensor.
docstring_tokens: Return the state of the sensor .
code: def state(self):
          """Return the state of the sensor."""
          appliance = self._coordinator.data["appliances"][self._appliance_id]
          smart_meter = appliance["smart_meter"]
          echonetlite_properties = smart_meter["echonetlite_properties"]
          measured_instantaneous = next(
              value["val"] for value in echonetlite_properties if value["epc"] == 231
          )
          _LOGGER.debug("Current state: %sW", measured_instantaneous)
          return measured_instantaneous
code_tokens: def state ( self ) : appliance = self . _coordinator . data [ "appliances" ] [ self . _appliance_id ] smart_meter = appliance [ "smart_meter" ] echonetlite_properties = smart_meter [ "echonetlite_properties" ] measured_instantaneous = next ( value [ "val" ] for value in echonetlite_properties if value [ "epc" ] == 231 ) _LOGGER . debug ( "Current state: %sW" , measured_instantaneous ) return measured_instantaneous
short_docstring: Return the state of the sensor.
short_docstring_tokens: Return the state of the sensor .
comment: """Return the state of the sensor."""