'Update the state of the sensor.'

def update(self):

    result = modbus.HUB.read_coils(self._slave, self._coil, 1)
    try:
        self._value = result.bits[0]
    except AttributeError:
        _LOGGER.error('No    response    from    modbus    slave    %s    coil    %s', self._slave, self._coil)
