'Initialize the modbus register sensor.'

def __init__(self, name, slave, register, register_type, unit_of_measurement, count, scale, offset, data_type, precision):

    self._name = name
    self._slave = (int(slave) if slave else None)
    self._register = int(register)
    self._register_type = register_type
    self._unit_of_measurement = unit_of_measurement
    self._count = int(count)
    self._scale = scale
    self._offset = offset
    self._precision = precision
    self._data_type = data_type
    self._value = None
