docs: def cli(ctx, mac, debug):
      """ Tool to query and modify the state of EQ3 BT smart thermostat. """
      if debug:
          logging.basicConfig(level=logging.DEBUG)
      else:
          logging.basicConfig(level=logging.INFO)
  
      thermostat = Thermostat(mac)
      thermostat.update()
      ctx.obj = thermostat
  
      if ctx.invoked_subcommand is None:
          ctx.invoke(state)