Beispiel #1
0
 def icon(self):
     """Return the icon to use in the frontend, if any."""
     return DEVICE_MAP[self._sensor_type][
         DEVICE_MAP_INDEX.index('ICON_INDEX')]
 def device_class(self):
     """Return the device class of the sensor type."""
     return DEVICE_MAP[self._sensor_type][
         DEVICE_MAP_INDEX.index('DEVICE_CLASS_INDEX')]
Beispiel #3
0
 def icon(self):
     """Icon to use in the frontend, if any."""
     return DEVICE_MAP[self._sensor_type][DEVICE_MAP_INDEX.index(
         'ICON_INDEX')]
Beispiel #4
0
 def device_class(self):
     """Return the device class of the sensor type."""
     return DEVICE_MAP[self._sensor_type][
         DEVICE_MAP_INDEX.index('DEVICE_CLASS_INDEX')]