code: def set_value(self, dry_wet: LeakSensorState):
          
          value = 0
          if dry_wet == self._dry_wet_type:
              value = 1
          self._update_subscribers(value)
docs: Set the value of the state to dry or wet.