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)
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
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
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
def __init__(self, config_entry: ConfigEntry): """Construct a FrigateEntity.""" Entity.__init__(self) self._config_entry = config_entry self._available = True
def __init__(self, dev: 'AqualinkSensor'): Entity.__init__(self) self.dev = dev