original_docstring: Return the status of the binary sensor.
docstring: Return the status of the binary sensor.
docstring_tokens: Return the status of the binary sensor .
code: def is_on(self) -> bool:
          """Return the status of the binary sensor."""
          if self.on_value is not None:
              value = self._state == self.on_value
          elif self._state is None:
              value = False
          else:
              value = bool(max(0, int(self._state)))
  
          if self.inverted:
              return not value
  
          return value
code_tokens: def is_on ( self ) -> bool : if self . on_value is not None : value = self . _state == self . on_value elif self . _state is None : value = False else : value = bool ( max ( 0 , int ( self . _state ) ) ) if self . inverted : return not value return value
short_docstring: Return the status of the binary sensor.
short_docstring_tokens: Return the status of the binary sensor .
comment: """Return the status of the binary sensor."""