text: """Support for the Hive sensors."""
  from datetime import timedelta
  
  from homeassistant.config_entries import ConfigEntry
  from homeassistant.core import HomeAssistant
  from homeassistant.helpers.entity_platform import AddEntitiesCallback
  from homeassistant.components.sensor import SensorEntity
  
  from . import HiveEntity
  from .const import DOMAIN
  
  PARALLEL_UPDATES = 0
  SCAN_INTERVAL = timedelta(seconds=15)
  
  
  async def async_setup_entry(
      hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
  ) -> None:
      """Set up Hive thermostat based on a config entry."""
  
      hive = hass.data[DOMAIN][entry.entry_id]
      devices = hive.session.deviceList.get("sensor")
      entities = []
      if devices:
          for dev in devices:
              entities.append(HiveSensorEntity(hive, dev))
      async_add_entities(entities, True)
  
  
  class HiveSensorEntity(HiveEntity, SensorEntity):
      """Hive Sensor Entity."""
  
      async def async_update(self):
          """Update all Node data from Hive."""
          await self.hive.session.updateData(self.device)
          self.device = await self.hive.sensor.getSensor(self.device)
          self._attr_available = self.device["deviceData"].get("online")
          self._attr_native_value = self.device["status"]["state"]
  