'Initialize the sensor.'

def __init__(self, name, state, unit_of_measurement, battery):

    self._name = name
    self._state = state
    self._unit_of_measurement = unit_of_measurement
    self._battery = battery
