Ejemplo n.º 1
0
 def __init__(
     self,
     api: SynoApi,
     entity_type: str,
     entity_info: Dict[str, str],
 ):
     """Initialize the Synology DSM entity."""
     super().__init__(api, entity_type, entity_info)
     Entity.__init__(self)
Ejemplo n.º 2
0
 def __init__(self, mac, uom, name, entity_name):
     """Initialize the sensor."""
     Entity.__init__(self)
     self._device_class = DEVICE_CLASS_BATTERY
     self._mac = mac
     self._unit_of_measurement = uom
     self._name = name
     self._entity_name = entity_name
     self.parameter = "battery"
     self._state = None
     self.battery = None
Ejemplo n.º 3
0
 def __init__(self, mac, uom, name, entity_name):
     """Initialize the sensor."""
     Entity.__init__(self)
     self._device_class = DEVICE_CLASS_TEMPERATURE
     self._mac = mac
     self._unit_of_measurement = uom
     self._name = name
     self._entity_name = entity_name
     self.parameter = "temperature"
     self._state = None
     self.temperature = None
Ejemplo n.º 4
0
 def __init__(self, hass, inkbird_devices):
     """Initialize the thermometer."""
     Entity.__init__(self)
     self._name = 'Inkbird Updater'
     self._state = None
     self._mac = None
     self.hass = hass
     self.scanner = Scanner()
     self.scanner.clear()
     self.scanner.start()
     self.inkbird_devices = inkbird_devices
Ejemplo n.º 5
0
    def __init__(self, config_entry: ConfigEntry):
        """Construct a FrigateEntity."""
        Entity.__init__(self)

        self._config_entry = config_entry
        self._available = True
Ejemplo n.º 6
0
 def __init__(self, dev: 'AqualinkSensor'):
     Entity.__init__(self)
     self.dev = dev