Example #1
0
    def device_state_attributes(self):
        """Attributes of the sensor."""
        from elkm1_lib.const import SettingFormat

        attrs = self.initial_attrs()
        attrs["value_format"] = SettingFormat(self._element.value_format).name.lower()
        return attrs
Example #2
0
 def extra_state_attributes(self):
     """Attributes of the sensor."""
     attrs = self.initial_attrs()
     attrs["value_format"] = SettingFormat(
         self._element.value_format).name.lower()
     return attrs